суббота, 28 ноября 2020 г.

Gitlab ECR Credentials Helper - Settings on Runner

 

vi /etc/gitlab-runner/config.toml

concurrent = 1

check_interval = 0

[session_server]

  session_timeout = 1800

[[runners]]

  name = "EC2_i-034aeb1a7a49cda81"

  url = "https://gitlab-sfo.dolby.net/"

  token = "4EnhzuihzRrszK_y"

  executor = "docker"

  [runners.custom_build_dir]

  [runners.cache]

    Type = "s3"

    Shared = true

    [runners.cache.s3]

      BucketName = "domain.build-agent.cache"

      BucketLocation = "us-west-2"

    [runners.cache.gcs]

    [runners.cache.azure]

  [runners.docker]

    tls_verify = false

    image = "alpine"

    privileged = false

    disable_entrypoint_overwrite = false

    oom_kill_disable = false

    disable_cache = false

    volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/root/.docker/config.json:/root/.docker/config.json", "/usr/bin/docker-credential-ecr-login:/usr/bin/docker-credential-ecr-login", "/cache"]

    shm_size = 0


vi /root/.docker/config.json

"credHelpers":{"83678232.dkr.ecr.us-east-1.amazonaws.com":"ecr-login","8713175.dkr.ecr.us-west-2.amazonaws.com":"ecr-login", "8124058.dkr.ecr.us-west-1.amazonaws.com":"ecr-login"}}

Комментариев нет:

Отправить комментарий