Skip to content

Instantly share code, notes, and snippets.

@herrera-ignacio
Last active February 20, 2020 12:37
Show Gist options
  • Save herrera-ignacio/308af1645990ea3aa721fbbcba30d1cd to your computer and use it in GitHub Desktop.
Save herrera-ignacio/308af1645990ea3aa721fbbcba30d1cd to your computer and use it in GitHub Desktop.
Gitlab-runner configuration to build and run docker images
# /etc/gitlab-runner/config.toml
concurrent = 10
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = $RUNNER_NAME
url = $GITLAB_URL
token = $RUNNER_REGISTRATION_TOKEN
executor = "docker"
environment = ["DOCKER_TLS_CERTDIR="]
[runners.custom_build_dir]
[runners.docker]
tls_verify = false
image = "docker:19.03.1"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = true
shm_size = 0
network_mode = "bridge" #This is key for docker networking
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment