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.
This commit is contained in:
Christoph Reiter 2018-03-13 21:08:56 +01:00
parent 27abc9fefe
commit 5838ac3d1d

View File

@ -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