Comments (6)
@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.
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.
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.
@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.
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.
@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)
- Both `--kaniko-dir` and `KANIKO_DIR` needs to be set
- Kaniko not able to auth against Nexus OSS HOT 2
- Recipe for adding bash to Kaniko HOT 1
- Required Socket Files Ignored
- mktemp present but non-functional HOT 3
- error building image: stream error: stream ID 13; NO_ERROR; received from peer
- During image push and pull, error building image: stream error: stream ID 13; NO_ERROR; received from peer
- Even when `KANIKO_NO_PUSH="true"` there is a info message with "Pushed"
- Creating a custom kaniko image using a multi-stage Dockerfile fails
- Generated image is missing files generated via RUN HOT 2
- [TEST FLAKE] Intermittently seeing - `No such image: localhost:5000/<test-image>` HOT 3
- [Bug] --registry-mirror does not work with warmer since v1.21.0 HOT 1
- error removing bin to make way for new symlink: unlinkat //bin/sh: permission denied
- Question regarding a vulnerability (CVE-2023-45288), vuln scans & results publishing HOT 1
- Setting `--kaniko-dir` (or `KANIKO_DIR`) clobbers `DOCKER_CONFIG` if it is explicitly set. HOT 2
- Execution takes too long for "Unpacking rootfs as cmd COPY" HOT 1
- "GET https://example.com/users/sign_in: unexpected status code 200 OK" when pushing to self-hosted GitLab with Kaniko HOT 5
- compression=zstd not working starting from v1.16
- After run kaniko in container, image is changed and part of local context stop to work HOT 2
- using Kaniko with a registry-mirror or registry-map which includes a path does not work for pulling images from DockerHub HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaniko.