diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-05-04 06:55:53 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-05-04 11:38:55 -0400 |
commit | f41e58d179478fcee379d8fd32706382bd74ce3e (patch) | |
tree | 8d35c7a2c3edb87b7418b797d3ae9f6dac0fe58b /.gitlab-ci | |
parent | d288931b4549bac3c3103296c7bc42377e6d155c (diff) | |
download | gtk+-f41e58d179478fcee379d8fd32706382bd74ce3e.tar.gz |
ci: Make run-docker run work
We want to have a writable volume and the same user
inside the container.
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/run-docker.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh index 6574a4f4af..46d20f0161 100755 --- a/.gitlab-ci/run-docker.sh +++ b/.gitlab-ci/run-docker.sh @@ -138,7 +138,8 @@ if [ $run == 1 ]; then echo -e "\e[1;32mRUNNING\e[0m: ${base} as ${TAG}" ${CMD} run \ --rm \ - --volume "$(pwd)/..:/home/user/app" \ + --userns=keep-id \ + --volume "$(pwd)/..:/home/user/app:rw,z" \ --workdir "/home/user/app" \ --tty \ --interactive "${TAG}" \ |