charliecloud
charliecloud copied to clipboard
`ch-image build` with here-doc fails
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
Hmm, it appears the issue is with the EOF
after the here-doc, not opensuse.
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?