forked from AuroraMiddleware/gtk
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:
parent
27abc9fefe
commit
5838ac3d1d
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
TAG="lazka/gitlab-gtk:v1"
|
TAG="ebassi/gitlab-gtk:latest"
|
||||||
|
|
||||||
sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
|
sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
|
||||||
--file "Dockerfile" .
|
--file "Dockerfile" .
|
||||||
sudo docker run --rm \
|
sudo docker run --rm --security-opt label=disable \
|
||||||
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
|
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
|
||||||
--tty --interactive "${TAG}" bash
|
--tty --interactive "${TAG}" bash
|
||||||
|
Loading…
Reference in New Issue
Block a user