forked from AuroraMiddleware/gtk
5838ac3d1d
On Fedora and similar SELinux by default prevents containers accessing mounted host directories. This script is just used for testing, so disable it.
12 lines
305 B
Bash
Executable File
12 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
TAG="ebassi/gitlab-gtk:latest"
|
|
|
|
sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
|
|
--file "Dockerfile" .
|
|
sudo docker run --rm --security-opt label=disable \
|
|
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
|
|
--tty --interactive "${TAG}" bash
|