-
Notifications
You must be signed in to change notification settings - Fork 779
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 + heredoc errors with whitelist-style ignore files #5391
Comments
TomSweeneyRedHat
assigned TomSweeneyRedHat and flouthoc and unassigned TomSweeneyRedHat
Mar 11, 2024
@flouthoc if you get a moment |
I'll check this thanks |
flouthoc
added a commit
to flouthoc/buildah
that referenced
this issue
Apr 3, 2024
If we are copying heredoc files, we need to temporary place them in the context dir and then move to container via copier there are cases where .containerignore can have a patterns like which can match our heredoc files so let's not set any excludes or IgnoreFile for this copy. Closes: containers#5391 Signed-off-by: flouthoc <flouthoc.git@gmail.com>
Thanks PR #5459 should close this. |
flouthoc
added a commit
to flouthoc/buildah
that referenced
this issue
Apr 5, 2024
If we are copying heredoc files, we need to temporary place them in the context dir and then move to container via copier there are cases where .containerignore can have a patterns like which can match our heredoc files so let's not set any excludes or IgnoreFile for this copy. Closes: containers#5391 Signed-off-by: flouthoc <flouthoc.git@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
When the
.dockerignore
/.containerignore
file for a build context contains a generic*
glob pattern,COPY
commands using here-docs generally fail.Steps to reproduce the issue:
Once the above files are created, run:
$ buildah build
Describe the results you received:
The
COPY
errors, e.g. in aquay.io/buildah/upstream:latest
container:Describe the results you expected:
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: