ci: Make run-docker run work
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 May 2023 10:55:53 +0000 (06:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 May 2023 15:38:55 +0000 (11:38 -0400)
We want to have a writable volume and the same user
inside the container.

.gitlab-ci/run-docker.sh

index 6574a4f4af3d21d5d81c4667260d7e55801fd624..46d20f01618a9af061e0aec534a41dc4434aecfb 100755 (executable)
@@ -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}" \