charliecloud icon indicating copy to clipboard operation
charliecloud copied to clipboard

`ch-image build` with here-doc fails

Open j-ogas opened this issue 1 year ago • 2 comments

I am now seeing this from master when pulling opensuse/leap:

$ ch-image build -t leap -f - . <<EOF
FROM opensuse/leap:15.5
RUN zypper --non-interactive se lmod
EOF

  1  FROM opensuse/leap:15.5
  error: image ref syntax, at end: leap
hint: https://hpc.github.io/charliecloud/faq.html#how-do-i-specify-an-image-reference

j-ogas avatar Aug 16 '23 16:08 j-ogas

Hmm, it appears the issue is with the EOF after the here-doc, not opensuse.

j-ogas avatar Aug 16 '23 16:08 j-ogas

I can't reproduce (master branch):

$ ch-image build -t leap -f - /tmp <<EOF
FROM opensuse/leap:15.5
RUN zypper --non-interactive se lmod
EOF
initializing empty build cache
  1. FROM opensuse/leap:15.5
[...]
grown in 2 instructions: leap

Does this still happen for you?

reidpr avatar Sep 08 '23 17:09 reidpr