From 5838ac3d1d50cdd2007f1249e960061032c5a218 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 13 Mar 2018 21:08:56 +0100 Subject: [PATCH] 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. --- .gitlab-ci/run-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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