projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d288931
)
ci: Make run-docker run work
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 4 May 2023 10:55:53 +0000
(06:55 -0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/.gitlab-ci/run-docker.sh
b/.gitlab-ci/run-docker.sh
index 6574a4f4af3d21d5d81c4667260d7e55801fd624..46d20f01618a9af061e0aec534a41dc4434aecfb 100755
(executable)
--- 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}" \