Merge pull request #11755 from nalind/remote-build-eval-contextdir

remote build: EvalSymlinks() the context directory
This commit is contained in:
OpenShift Merge Robot
2021-09-27 11:12:57 -04:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@ -956,6 +956,15 @@ EOF
run_podman build -t build_test $tmpdir
}
@test "podman build build context is a symlink to a directory" {
tmpdir=$PODMAN_TMPDIR/build-test
mkdir -p $tmpdir/target
ln -s target $tmpdir/link
echo FROM alpine > $tmpdir/link/Dockerfile
echo RUN echo hello >> $tmpdir/link/Dockerfile
run_podman build -t build_test $tmpdir/link
}
function teardown() {
# A timeout or other error in 'build' can leave behind stale images
# that podman can't even see and which will cascade into subsequent