hpc / charliecloud

Lightweight user-defined software stacks for high-performance computing.
https://hpc.github.io/charliecloud
Apache License 2.0
311 stars 61 forks source link

`ch-image build` with here-doc fails #1705

Open j-ogas opened 1 year ago

j-ogas commented 1 year ago

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 commented 1 year ago

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

reidpr commented 1 year ago

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?