summaryrefslogtreecommitdiff
path: root/test/system/070-build.bats
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-03-16 14:04:07 +0100
committerValentin Rothberg <vrothberg@redhat.com>2022-03-17 14:18:16 +0100
commitff54aaa634f9b3fbcdc67ceff8ebcc9689ca0658 (patch)
treeadd8ad426c75658a9c6297cc2d901902c9579ea6 /test/system/070-build.bats
parentfa33f3527f14edbf7407ba3ba482ef839debfb39 (diff)
downloadpodman-ff54aaa634f9b3fbcdc67ceff8ebcc9689ca0658.tar.gz
podman-ff54aaa634f9b3fbcdc67ceff8ebcc9689ca0658.tar.bz2
podman-ff54aaa634f9b3fbcdc67ceff8ebcc9689ca0658.zip
podman create: building local pause image: do not read ignore files
Make sure to ignore local {container,docker}ignore files when building a local pause image. Otherwise, we may mistakenly not be able to copy catatonit into the build container. Fixes: #13529 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test/system/070-build.bats')
-rw-r--r--test/system/070-build.bats11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats
index e47d66542..7466c3b74 100644
--- a/test/system/070-build.bats
+++ b/test/system/070-build.bats
@@ -605,7 +605,7 @@ EOF
done
}
-# Regression test for #9867
+# Regression test for #9867 and #13529
# Make sure that if you exclude everything in context dir, that
# the Containerfile/Dockerfile in the context dir are used
@test "podman build with ignore '*'" {
@@ -620,6 +620,15 @@ cat >$tmpdir/.dockerignore <<EOF
*
EOF
+ # Prior to the fix for #13529, pod-create would fail with 'error building
+ # at STEP COPY .../catatonit' because of the local .dockerignore file was
+ # used.
+ pushd "${tmpdir}"
+ run_podman pod create
+ run_podman pod rm $output
+ run_podman rmi $(pause_image)
+ popd
+
run_podman build -t build_test $tmpdir
# Rename Containerfile to Dockerfile