summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/run-docker.sh')
-rwxr-xr-x.gitlab-ci/run-docker.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh
new file mode 100755
index 00000000..91694fb3
--- /dev/null
+++ b/.gitlab-ci/run-docker.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+sudo docker build --build-arg HOST_USER_ID="$UID" --tag "gitlab-gi" \
+ --file "Dockerfile" .
+sudo docker run --rm \
+ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
+ --tty --interactive "gitlab-gi" bash