Commit 8b5092e9 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Nombra volúmenes anónimos y detalles de runners

parent 6b424cf4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -14,3 +14,10 @@ services:
          memory: 1G
        reservations:
          memory: 820M

volumes:
  etc-vol:
    name: gitlab-runner-local-etc-vol

  home-vol:
    name: gitlab-runner-local-home-vol
+10 −8
Original line number Diff line number Diff line
@@ -8,13 +8,6 @@ services:
      -c "
        gitlab-runner register ;
        gitlab-runner run --user=gitlab-runner --working-directory=/home/gitlab-runner"
    networks:
      - gitlab-net
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    configs:
      - source: config-local
        target: /etc/gitlab-runner/config.toml
    environment:
      - CI_SERVER_URL=${GITLAB_URL}
      - REGISTRATION_TOKEN=${GITLAB_TOKEN}
@@ -41,11 +34,20 @@ services:
      - S3_SECRET_KEY=${MINIO_SECRET_KEY}
      - S3_BUCKET_NAME=${RUNNER_S3_BUCKET_NAME}
      - S3_CACHE_INSECURE=${RUNNER_S3_CACHE_INSECURE}
    networks:
      - gitlab-net
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - etc-vol:/etc/gitlab-runner
      - home-vol:/home/gitlab-runner
    configs:
      - source: config-toml
        target: /etc/gitlab-runner/config.toml

networks:
  gitlab-net:
    external: true

configs:
  config-local:
  config-toml:
    file: ./config-local/config.toml
+7 −0
Original line number Diff line number Diff line
@@ -14,3 +14,10 @@ services:
          memory: 1G
        reservations:
          memory: 820M

volumes:
  etc-vol:
    name: gitlab-runner-remote-etc-vol

  home-vol:
    name: gitlab-runner-remote-home-vol
+10 −8
Original line number Diff line number Diff line
@@ -8,13 +8,6 @@ services:
      -c "
        gitlab-runner register ;
        gitlab-runner run --user=gitlab-runner --working-directory=/home/gitlab-runner"
    networks:
      - gitlab-net
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    configs:
      - source: config-remote
        target: /etc/gitlab-runner/config.toml
    environment:
      - CI_SERVER_URL=${GITLAB_URL}
      - REGISTRATION_TOKEN=${GITLAB_TOKEN}
@@ -41,11 +34,20 @@ services:
      - S3_SECRET_KEY=${MINIO_SECRET_KEY}
      - S3_BUCKET_NAME=${RUNNER_S3_BUCKET_NAME}
      - S3_CACHE_INSECURE=${RUNNER_S3_CACHE_INSECURE}
    networks:
      - gitlab-net
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - etc-vol:/etc/gitlab-runner
      - home-vol:/home/gitlab-runner
    configs:
      - source: config-toml
        target: /etc/gitlab-runner/config.toml

networks:
  gitlab-net:
    external: true

configs:
  config-remote:
  config-toml:
    file: ./config-remote/config.toml