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

No ADD primitive? #149

Closed
DC-Shi opened this issue Apr 23, 2019 · 1 comment
Closed

No ADD primitive? #149

DC-Shi opened this issue Apr 23, 2019 · 1 comment

Comments

@DC-Shi
Copy link

DC-Shi commented Apr 23, 2019

ADD some.tar.gz /data would extract the tarball to destination, but COPY only copy the file, no extraction.

Extracting source code for compile or extract binary files into container would be common usage for docker building from my experience. I hope this primitive can be added into hpccm.

(This might be a docker specific problem.)

@samcmill
Copy link
Collaborator

Hi @DC-Shi - thanks for your interest in HPCCM.

Docker advises using COPY instead of ADD in nearly all cases.

If you must use ADD, consider the raw primitive (although if you ever intent to generate Singularity definition files from the same recipe, you need to include a Singularity equivalent).

Stage0 += raw(docker='ADD some.tar.gz /data')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants