Commit fbb6d5dd authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Removed sudo from docker commands.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent f9aed261
Pipeline #12215 passed with stage
in 21 seconds
......@@ -6,8 +6,8 @@ tag="py_tools_ds_ci:0.15.2"
echo "#### Build runner docker image"
sudo docker rmi ${tag}
sudo docker build ${context_dir} \
docker rmi ${tag}
docker build ${context_dir} \
-f ${context_dir}/${dockerfile} \
-m 20G \
-t ${tag}
......@@ -17,9 +17,9 @@ sudo docker build ${context_dir} \
# The runner uses a 'config.toml' configuration file at /etc/gitlab-runner within the container which can be
# modified through additional parameters of the 'gitlab-runner register' command.
echo "#### Create gitlab-runner (daemon) container with tag; ${tag}"
sudo docker stop ${gitlab_runner}
sudo docker rm ${gitlab_runner}
sudo docker run \
docker stop ${gitlab_runner}
docker rm ${gitlab_runner}
docker run \
-d \
--name ${gitlab_runner} \
--restart always \
......@@ -34,7 +34,7 @@ read -p "Please enter gitlab runner name: " runner_name
echo "New gitlab runner image will named ${gitlab_runner}"
# NOTE: In case of locally stored images (like here), the docker pull policy 'never' must be used
# (see
sudo docker exec -it ${gitlab_runner} /bin/bash -c "\
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