Giter Club home page Giter Club logo

Comments (6)

yossicohn avatar yossicohn commented on May 27, 2024 1

@JeromeJu the latest I know of working is v1.12.0, in the process of upgrade to the latest I got all the issues of the COPY I mentioned above

from kaniko.

JeromeJu avatar JeromeJu commented on May 27, 2024

Thanks for filing the bug @yossicohn ; could you specify the version of kaniko you're using and which release is the workable one?

from kaniko.

prima101112 avatar prima101112 commented on May 27, 2024

Hi @yossicohn could you provide whats is the error or the behavior in your case?
is it file not found, is it error or something else?

from kaniko.

yossicohn avatar yossicohn commented on May 27, 2024

@prima101112
Examples and most painful
COPY . .
I get no error, but it does not copy anything vs. the original behavior of copying all the context files.

if I do
COPY ./ssh/* ./ssh
I get an error
{"level":"info","msg":"Resolving srcs [.ssh/*]...","time":"2024-04-02T08:40:22Z"} error building image: error building stage: failed to get files used from context: copy failed: no source files specified

Same for other wildcards usages like *.json etc.
btw, the following does work
COPY ./ssh ./ssh

from kaniko.

prima101112 avatar prima101112 commented on May 27, 2024

tested master branch with

COPY ./* ./

its copy all files.
but dunno with COPY ./ ./ is the docker behavior will copy all files?

cc : @JeromeJu

from kaniko.

yossicohn avatar yossicohn commented on May 27, 2024

@prima101112 as far as I can see the copied content via COPY ./* ./ is not really working, as it is not available.
I tried it and the Folders are not available, cd into the folders fails

drwxrwxrwx    1 root     root            31 Apr 24 06:52 .
drwxr-xr-x    1 root     root            40 Apr 24 06:53 ..
lrwxrwxrwx    1 root     root            51 Apr 24 06:52 myfolder -> .worktrees/e15ba753ddeafecc38225a329b90f69a9ef70545
# cd myfolder
/bin/sh: cd: can't cd to myfolder: No such file or directory

Regarding COPY ./ ./
or COPY ./ssh/* ./ssh
or COPY ./*.json ./
all these are not working as for v1.22 and are very needed behavior and feature

Can you recheck this?

from kaniko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.