migrate
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
<< service_name >>:
|
||||
image: docker.io/gitlab/gitlab-runner:alpine-v17.9.1
|
||||
container_name: << container_name >>
|
||||
volumes:
|
||||
- ./config/config.toml:/etc/gitlab-runner/config.toml:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: << restart_policy >>
|
||||
@@ -0,0 +1,25 @@
|
||||
concurrent = << gitlab_runner_concurrent >>
|
||||
log_level = "warning"
|
||||
log_format = "json"
|
||||
check_interval = 5
|
||||
|
||||
[[runners]]
|
||||
name = "<< gitlab_runner_name >>"
|
||||
url = "<< gitlab_url >>"
|
||||
executor = "docker"
|
||||
token = "<< gitlab_runner_token >>"
|
||||
limit = 0
|
||||
# FIXME To increase rate limits, when pulling down images from the Docker Hub you might want to authenticate:
|
||||
# 1. Create a Docker Hub account and generate a personal access token
|
||||
# 2. Encode the username and token in base64
|
||||
# Example: echo -n 'username:token' | base64
|
||||
# 3. Replace the <BASE64_ENCODED_AUTH> with the base64 encoded string
|
||||
environment = ["DOCKER_AUTH_CONFIG={\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"<BASE64_ENCODED_AUTH>\"}}}"]
|
||||
[runners.docker]
|
||||
tls_verify = false
|
||||
image = "<< gitlab_executor_image >>"
|
||||
privileged = true
|
||||
disable_cache = false
|
||||
volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
|
||||
[runners.cache]
|
||||
Insecure = false
|
||||
Reference in New Issue
Block a user