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

COPY from previous stage always misses #1396

Closed
ashlynrlee opened this issue Jul 1, 2022 · 0 comments · Fixed by #1425
Closed

COPY from previous stage always misses #1396

ashlynrlee opened this issue Jul 1, 2022 · 0 comments · Fixed by #1425
Assignees
Milestone

Comments

@ashlynrlee
Copy link

Bug Copy instructions from previous stages are not cached correctly.

Steps to reproduce:

$pwd
 ~/charliecloud/examples
$ ch-image pull ubuntu:20.04
$ ch-image build --force -t nvidia -f Dockerfile.nvidia .
$ ch-image build --force -t nvidia -f Dockerfile.nvidia .

Output:

39. RUN.F make
copying image ...
 43* FROM ubuntu:20.04
 45. COPY  --from=0['/usr/local/cuda-11.2/samples/0_Simple/matrixMulCUBLAS'] -> '/'
copying image ...
will use --force: debderiv: Debian 9+, Ubuntu 14+, or other derivative
 51. COPY  --from=0['/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcublas.so.11.4.1.1043'] -> '/usr/local/lib'
 52. COPY  --from=0['/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcublasLt.so.11.4.1.1043'] -> '/usr/local/lib'
 53. RUN.F ldconfig
 warning: --force specified, but nothing to do
grown in 13 instructions: nvidia

These should have been cache hits instead full Copy instructions.
Notice 43* where the asterisk indicates a cache hit and 45 where no asterisk shows the first cache miss.

@reidpr reidpr self-assigned this Jul 1, 2022
@reidpr reidpr added this to the 0.29 milestone Jul 1, 2022
@reidpr reidpr changed the title Copy Instructions Improperly Cached COPY from previous stage always misses Jul 29, 2022
@reidpr reidpr changed the title COPY from previous stage always misses COPY from previous stage always misses Jul 29, 2022
@reidpr reidpr modified the milestones: 0.29, 0.30 Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants