From: Christoph Reiter Date: Tue, 13 Mar 2018 20:08:56 +0000 (+0100) Subject: run-docker.sh: Disable SELinux for the container and update the image tag X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~997 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5838ac3d1d50cdd2007f1249e960061032c5a218;p=gtk4.git run-docker.sh: Disable SELinux for the container and update the image tag On Fedora and similar SELinux by default prevents containers accessing mounted host directories. This script is just used for testing, so disable it. --- diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh index af8af9030a..85c012d30a 100755 --- a/.gitlab-ci/run-docker.sh +++ b/.gitlab-ci/run-docker.sh @@ -2,10 +2,10 @@ set -e -TAG="lazka/gitlab-gtk:v1" +TAG="ebassi/gitlab-gtk:latest" sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \ --file "Dockerfile" . -sudo docker run --rm \ +sudo docker run --rm --security-opt label=disable \ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \ --tty --interactive "${TAG}" bash