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

Re-added sudo.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent bc3248c3
Pipeline #12022 failed with stage
in 5 seconds
......@@ -6,16 +6,16 @@ tag="py_tools_ds_ci:0.15.2"
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 \
Supports Markdown
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