Skip to content
Snippets Groups Projects
Verified Commit 27bd1fc5 authored by nd's avatar nd
Browse files

add workaround to docker env

parent 9622aaae
Branches
No related tags found
No related merge requests found
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
- runner_is_registered.rc == 1 - runner_is_registered.rc == 1
command: command:
"gitlab-runner register --non-interactive --url {{ gitlab_runner.url }} --registration-token {{ gitlab_runner.token }} --executor docker --docker-image '{{ gitlab_runner.image }}' --description '{{ gitlab_runner.description }}'" "gitlab-runner register --non-interactive --url {{ gitlab_runner.url }} --registration-token {{ gitlab_runner.token }} --executor docker --docker-image '{{ gitlab_runner.image }}' --description '{{ gitlab_runner.description }}'"
# We really don’t want to use this, but there is no other way: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1539 # We really don’t want to use this, but there is no other way: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1539
- name: set concurrency for gitlab-runner - name: set concurrency for gitlab-runner
lineinfile: lineinfile:
...@@ -65,4 +64,3 @@ ...@@ -65,4 +64,3 @@
line: "concurrent = {{ gitlab_runner.concurrent }}" line: "concurrent = {{ gitlab_runner.concurrent }}"
notify: notify:
- restart gitlab-runner - restart gitlab-runner
...@@ -4,3 +4,6 @@ listen_address = "[::1]:9252" ...@@ -4,3 +4,6 @@ listen_address = "[::1]:9252"
[session_server] [session_server]
session_timeout = 1800 session_timeout = 1800
[[runners]]
# Workaround to fix container detection in docker, see https://github.com/GoogleContainerTools/kaniko/issues/1542#issuecomment-999545027
environment = ["container=docker"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment