From f41e58d179478fcee379d8fd32706382bd74ce3e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 4 May 2023 06:55:53 -0400 Subject: [PATCH] ci: Make run-docker run work We want to have a writable volume and the same user inside the container. --- .gitlab-ci/run-docker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}" \