Loading gitlab-runner/.env +19 −8 Original line number Diff line number Diff line GITLAB_URL=https://git.redmic.net RUNNER_NAME="REDMIC GitLabCI Runner" GITLAB_TOKEN=token RUNNER_NAME=REDMIC GitLabCI Runner RUNNER_OUTPUT_LIMIT=40960 RUNNER_DOCKER_SHM_SIZE=1000000000 RUNNER_DOCKER_MEMORY=4g RUNNER_DOCKER_MEMORY_SWAP=6g RUNNER_DOCKER_MEMORY_RESERVATION=1g RUNNER_DOCKER_CPUSET_CPUS=1,2 RUNNER_CACHE_S3_SERVER_ADDRESS=minio.redmic.net RUNNER_CACHE_S3_BUCKET_NAME=cache RUNNER_EXECUTOR=docker DOCKER_IMAGE=alpine DOCKER_TLS_VERIFY=false DOCKER_PRIVILEGED=true DOCKER_DISABLE_CACHE=true DOCKER_SHM_SIZE=1000000000 DOCKER_MEMORY=4g DOCKER_MEMORY_SWAP=6g DOCKER_MEMORY_RESERVATION=1g DOCKER_CPUSET_CPUS=1,2 CACHE_TYPE=s3 CACHE_SHARED=true MINIO_URL=minio.redmic.net MINIO_ACCESS_KEY=accessKey MINIO_SECRET_KEY=secretKey S3_BUCKET_NAME=cache S3_CACHE_INSECURE=false gitlab-runner/docker-compose.tmpl.yml +22 −22 Original line number Diff line number Diff line Loading @@ -7,28 +7,7 @@ services: run \ --user=gitlab-runner \ --working-directory=/home/gitlab-runner register \ --url "${GITLAB_URL}" \ --registration-token "${GITLAB_TOKEN}" \ --name "${RUNNER_NAME}" \ --output_limit "${RUNNER_OUTPUT_LIMIT}" \ --executor "docker" \ --docker-image "alpine" \ --docker-tlsverify "false" \ --docker-privileged "true" \ --docker-disable-cache "true" \ --docker-shm-size "${RUNNER_DOCKER_SHM_SIZE}" \ --docker-memory "${RUNNER_DOCKER_MEMORY}" \ --docker-memory-swap "${RUNNER_DOCKER_MEMORY_SWAP}" \ --docker-memory-reservation "${RUNNER_DOCKER_MEMORY_RESERVATION}" \ --docker-cpuset-cpus "${RUNNER_DOCKER_CPUSET_CPUS}" \ --cache-type "s3" \ --cache-s3-server-address "${RUNNER_CACHE_S3_SERVER_ADDRESS}" \ --cache-s3-access-key "${MINIO_ACCESS_KEY}" \ --cache-s3-secret-key "${MINIO_SECRET_KEY}" \ --cache-s3-bucket-name "${RUNNER_CACHE_S3_BUCKET_NAME}" \ --cache-s3-insecure "false" \ --cache-cache-shared "true" register networks: - gitlab-net volumes: Loading @@ -36,6 +15,27 @@ services: - ./config:/etc/gitlab-runner environment: - REGISTER_NON_INTERACTIVE=true - CI_SERVER_URL=${GITLAB_URL} - CI_SERVER_TOKEN=${GITLAB_TOKEN} - RUNNER_NAME - RUNNER_OUTPUT_LIMIT - RUNNER_EXECUTOR - DOCKER_IMAGE - DOCKER_TLS_VERIFY - DOCKER_PRIVILEGED - DOCKER_DISABLE_CACHE - DOCKER_SHM_SIZE - DOCKER_MEMORY - DOCKER_MEMORY_SWAP - DOCKER_MEMORY_RESERVATION - DOCKER_CPUSET_CPUS - CACHE_TYPE - CACHE_SHARED - S3_SERVER_ADDRESS=${MINIO_URL} - S3_ACCESS_KEY=${MINIO_ACCESS_KEY} - S3_SECRET_KEY=${MINIO_SECRET_KEY} - S3_BUCKET_NAME - S3_CACHE_INSECURE networks: gitlab-net: Loading Loading
gitlab-runner/.env +19 −8 Original line number Diff line number Diff line GITLAB_URL=https://git.redmic.net RUNNER_NAME="REDMIC GitLabCI Runner" GITLAB_TOKEN=token RUNNER_NAME=REDMIC GitLabCI Runner RUNNER_OUTPUT_LIMIT=40960 RUNNER_DOCKER_SHM_SIZE=1000000000 RUNNER_DOCKER_MEMORY=4g RUNNER_DOCKER_MEMORY_SWAP=6g RUNNER_DOCKER_MEMORY_RESERVATION=1g RUNNER_DOCKER_CPUSET_CPUS=1,2 RUNNER_CACHE_S3_SERVER_ADDRESS=minio.redmic.net RUNNER_CACHE_S3_BUCKET_NAME=cache RUNNER_EXECUTOR=docker DOCKER_IMAGE=alpine DOCKER_TLS_VERIFY=false DOCKER_PRIVILEGED=true DOCKER_DISABLE_CACHE=true DOCKER_SHM_SIZE=1000000000 DOCKER_MEMORY=4g DOCKER_MEMORY_SWAP=6g DOCKER_MEMORY_RESERVATION=1g DOCKER_CPUSET_CPUS=1,2 CACHE_TYPE=s3 CACHE_SHARED=true MINIO_URL=minio.redmic.net MINIO_ACCESS_KEY=accessKey MINIO_SECRET_KEY=secretKey S3_BUCKET_NAME=cache S3_CACHE_INSECURE=false
gitlab-runner/docker-compose.tmpl.yml +22 −22 Original line number Diff line number Diff line Loading @@ -7,28 +7,7 @@ services: run \ --user=gitlab-runner \ --working-directory=/home/gitlab-runner register \ --url "${GITLAB_URL}" \ --registration-token "${GITLAB_TOKEN}" \ --name "${RUNNER_NAME}" \ --output_limit "${RUNNER_OUTPUT_LIMIT}" \ --executor "docker" \ --docker-image "alpine" \ --docker-tlsverify "false" \ --docker-privileged "true" \ --docker-disable-cache "true" \ --docker-shm-size "${RUNNER_DOCKER_SHM_SIZE}" \ --docker-memory "${RUNNER_DOCKER_MEMORY}" \ --docker-memory-swap "${RUNNER_DOCKER_MEMORY_SWAP}" \ --docker-memory-reservation "${RUNNER_DOCKER_MEMORY_RESERVATION}" \ --docker-cpuset-cpus "${RUNNER_DOCKER_CPUSET_CPUS}" \ --cache-type "s3" \ --cache-s3-server-address "${RUNNER_CACHE_S3_SERVER_ADDRESS}" \ --cache-s3-access-key "${MINIO_ACCESS_KEY}" \ --cache-s3-secret-key "${MINIO_SECRET_KEY}" \ --cache-s3-bucket-name "${RUNNER_CACHE_S3_BUCKET_NAME}" \ --cache-s3-insecure "false" \ --cache-cache-shared "true" register networks: - gitlab-net volumes: Loading @@ -36,6 +15,27 @@ services: - ./config:/etc/gitlab-runner environment: - REGISTER_NON_INTERACTIVE=true - CI_SERVER_URL=${GITLAB_URL} - CI_SERVER_TOKEN=${GITLAB_TOKEN} - RUNNER_NAME - RUNNER_OUTPUT_LIMIT - RUNNER_EXECUTOR - DOCKER_IMAGE - DOCKER_TLS_VERIFY - DOCKER_PRIVILEGED - DOCKER_DISABLE_CACHE - DOCKER_SHM_SIZE - DOCKER_MEMORY - DOCKER_MEMORY_SWAP - DOCKER_MEMORY_RESERVATION - DOCKER_CPUSET_CPUS - CACHE_TYPE - CACHE_SHARED - S3_SERVER_ADDRESS=${MINIO_URL} - S3_ACCESS_KEY=${MINIO_ACCESS_KEY} - S3_SECRET_KEY=${MINIO_SECRET_KEY} - S3_BUCKET_NAME - S3_CACHE_INSECURE networks: gitlab-net: Loading