diff options
author | Aditya Rajan <arajan@redhat.com> | 2021-11-26 18:18:30 +0530 |
---|---|---|
committer | Aditya Rajan <arajan@redhat.com> | 2021-11-30 14:19:29 +0530 |
commit | e7204178e175d8ad619faa626ba284c777886cd3 (patch) | |
tree | 4903432e6c852b299695a92756cfc72bb1476186 /test/e2e/build | |
parent | bfcaf538bb000d7eb72975d234a95f566da54715 (diff) | |
download | podman-e7204178e175d8ad619faa626ba284c777886cd3.tar.gz podman-e7204178e175d8ad619faa626ba284c777886cd3.tar.bz2 podman-e7204178e175d8ad619faa626ba284c777886cd3.zip |
podman-remote: copy secret to contextdir is absolute path on host
Podman remote must treat build secrets as part of context directory. If
secret path is absolute path on host copy it to tar file and pass it to
remote server.
Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'test/e2e/build')
-rw-r--r-- | test/e2e/build/Dockerfile.with-multiple-secret | 3 | ||||
-rw-r--r-- | test/e2e/build/Dockerfile.with-secret | 2 | ||||
-rw-r--r-- | test/e2e/build/anothersecret.txt | 1 | ||||
-rw-r--r-- | test/e2e/build/secret.txt | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/build/Dockerfile.with-multiple-secret b/test/e2e/build/Dockerfile.with-multiple-secret new file mode 100644 index 000000000..f3478914f --- /dev/null +++ b/test/e2e/build/Dockerfile.with-multiple-secret @@ -0,0 +1,3 @@ +FROM alpine +RUN --mount=type=secret,id=mysecret cat /run/secrets/mysecret +RUN --mount=type=secret,id=mysecret2 cat /run/secrets/mysecret2 diff --git a/test/e2e/build/Dockerfile.with-secret b/test/e2e/build/Dockerfile.with-secret new file mode 100644 index 000000000..920663a92 --- /dev/null +++ b/test/e2e/build/Dockerfile.with-secret @@ -0,0 +1,2 @@ +FROM alpine +RUN --mount=type=secret,id=mysecret cat /run/secrets/mysecret diff --git a/test/e2e/build/anothersecret.txt b/test/e2e/build/anothersecret.txt new file mode 100644 index 000000000..bc5fdbd32 --- /dev/null +++ b/test/e2e/build/anothersecret.txt @@ -0,0 +1 @@ +anothersecret diff --git a/test/e2e/build/secret.txt b/test/e2e/build/secret.txt new file mode 100644 index 000000000..d9106c0af --- /dev/null +++ b/test/e2e/build/secret.txt @@ -0,0 +1 @@ +somesecret |