spiegel_podman/test/e2e/build
Aditya R 0bd0ad5943
container: workdir resolution must consider symlink if explicitly configured
While resolving `workdir` we mostly create a `workdir` when `stat`
fails with `ENOENT` or `ErrNotExist` however following cases are not
true when user explicitly specifies a `workdir` while `running` using
`--workdir` which tells `podman` to only use workdir if its exists on
the container. Following configuration is implicity set with other
`run` mechanism like `podman play kube`

Problem with explicit `--workdir` or similar implicit config in `podman play
kube` is that currently podman ignores the fact that workdir can also be
a `symlink` and actual `link` could be valid.

Hence following commit ensures that in such scenarios when a `workdir`
is not found and we cannot create a `workdir` podman must perform a
check to ensure that if `workdir` is a `symlink` and `link` is resolved
successfully and resolved link is present on the container then we
return as it is.

Docker performs a similar behviour.

Signed-off-by: Aditya R <arajan@redhat.com>
2022-03-02 19:02:33 +05:30
..
basicalpine Fix podman build --pull-never 2021-03-27 05:33:30 -04:00
envwithtab inspect: printTmpl must Flush writer 2021-09-09 16:37:24 +05:30
squash Fix podman build --pull-never 2021-03-27 05:33:30 -04:00
workdir-symlink container: workdir resolution must consider symlink if explicitly configured 2022-03-02 19:02:33 +05:30
anothersecret.txt podman-remote: copy secret to contextdir is absolute path on host 2021-11-30 14:19:29 +05:30
context_dir_a_file Add new test suite for build 2019-11-16 19:19:49 -05:00
Dockerfile.test-cp-root-dir fix podman cp can create an extra directory level 2020-06-15 23:56:45 +08:00
Dockerfile.with-multiple-secret podman-remote: copy secret to contextdir is absolute path on host 2021-11-30 14:19:29 +05:30
Dockerfile.with-secret podman-remote: copy secret to contextdir is absolute path on host 2021-11-30 14:19:29 +05:30
Dockerfile.with-secret-verify-leak podman-remote: prevent leaking secret into image 2021-11-30 15:44:10 +05:30
secret.txt podman-remote: copy secret to contextdir is absolute path on host 2021-11-30 14:19:29 +05:30