Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD tar does not work. #700

Closed
xingao267 opened this issue Jun 18, 2019 · 2 comments
Closed

ADD tar does not work. #700

xingao267 opened this issue Jun 18, 2019 · 2 comments
Labels
cmd/add kind/bug Something isn't working

Comments

@xingao267
Copy link

xingao267 commented Jun 18, 2019

Actual behavior and how to reproduce
ADD tar files in Dockerfile does not work properly with Kaniko.

Dockerfile content

FROM alpine:3.9
ENTRYPOINT ["sh"]
ADD tarfile.tar /

tarfile.tar is simple tarball that contains a test.txt file inside.

Command I run:

docker run -v <path_to_my_local_context_dir>:/workspace gcr.io/kaniko-project/executor:latest --dockerfile Dockerfile --context /workspace --reproducible --no-push --tarPath=/workspace/image.tar -d "someimage"

docker load -i image.tar

docker run -it someimage

The content of tarfile.tar is not unpacked and made available at / in the container.

Expected behavior
There should be a file named test.txt exist in the / in the container.

Additional Information

  • Dockerfile
    See above

  • Build Context
    Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
    Create a simple tarball that contains a txt file, and use that in build context.

  • Kaniko Image (fully qualified with digest)
    gcr.io/kaniko-project/executor@sha256:d9fe474f80b73808dc12b54f45f5fc90f7856d9fc699d4a5e79d968a1aef1a72

@priyawadhwa priyawadhwa added kind/bug Something isn't working cmd/add labels Aug 8, 2019
@priyawadhwa
Copy link
Collaborator

Hey @xingao267 thanks for submitting this issue. I just merged #717, could you see if this solves this problem? You can run gcr.io/kaniko-project/executor:0694be3e85e127ed597fdb068b1f91c4478806f8 to try the latest version of the image.

@tejal29
Copy link
Member

tejal29 commented Sep 20, 2019

This is fixed now.

@tejal29 tejal29 closed this as completed Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/add kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants