Commit 08b18957 authored by Daniel Scheffler's avatar Daniel Scheffler

Re-added sudo.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent bc3248c3
Pipeline #12022 failed with stage
in 5 seconds
......@@ -6,16 +6,16 @@ tag="py_tools_ds_ci:0.15.2"
gitlab_runner="py_tools_ds_gitlab_CI_runner"
echo "#### Build runner docker image"
docker rmi ${tag}
docker build ${context_dir} \
sudo docker rmi ${tag}
sudo docker build ${context_dir} \
-f ${context_dir}/${dockerfile} \
-m 20G \
-t ${tag}
echo "#### Create gitlab-runner (daemon) container with tag; ${tag}"
docker stop ${gitlab_runner}
docker rm ${gitlab_runner}
docker run \
sudo docker stop ${gitlab_runner}
sudo docker rm ${gitlab_runner}
sudo docker run \
-d \
--name ${gitlab_runner} \
--restart always \
......@@ -27,7 +27,7 @@ read -p "Please enter gitlab token: " token
echo ""
read -p "Please enter gitlab runner name: " runner_name
echo "New gitlab runner image will named ${gitlab_runner}"
docker exec -it ${gitlab_runner} /bin/bash -c "\
sudo docker exec -it ${gitlab_runner} /bin/bash -c "\
export RUNNER_EXECUTOR=docker && \
gitlab-ci-multi-runner register \
--non-interactive \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment