diff options
Diffstat (limited to '.gitlab-ci/run-docker.sh')
-rwxr-xr-x | .gitlab-ci/run-docker.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci/run-docker.sh b/.gitlab-ci/run-docker.sh new file mode 100755 index 0000000..95e80d4 --- /dev/null +++ b/.gitlab-ci/run-docker.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +TAG="registry.gitlab.gnome.org/gnome/pygobject/main:v21" + +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 |