summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-05-04 06:55:53 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-05-04 11:38:55 -0400
commitf41e58d179478fcee379d8fd32706382bd74ce3e (patch)
tree8d35c7a2c3edb87b7418b797d3ae9f6dac0fe58b /.gitlab-ci
parentd288931b4549bac3c3103296c7bc42377e6d155c (diff)
downloadgtk+-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.sh3
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}" \