Commit d7caf88d authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent 4911a6cb
Pipeline #10896 failed with stages
in 56 seconds
Showing with 4 additions and 2 deletions
+4 -2
...@@ -17,7 +17,8 @@ stages: ...@@ -17,7 +17,8 @@ stages:
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: "unix:///var/run/docker.sock" DOCKER_HOST: tcp://docker:2375
# DOCKER_HOST: "unix:///var/run/docker.sock"
DOCKER_OPTS: "--data-root=/mnt/volume/docker-data" DOCKER_OPTS: "--data-root=/mnt/volume/docker-data"
DOCKER_MEMORY: "4g" DOCKER_MEMORY: "4g"
DOCKER_CPUS: "2" DOCKER_CPUS: "2"
...@@ -28,7 +29,8 @@ build: ...@@ -28,7 +29,8 @@ build:
image: docker:dind image: docker:dind
services: services:
- name: docker:dind - name: docker:dind
command: ["--tls=false", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"] # command: ["--tls=false", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"]
command: [ "--host=tcp://0.0.0.0:2375", "--host=unix:///var/run/docker.sock", "--storage-driver=overlay2", "--mtu=1500", "--data-root=/mnt/volume"]
before_script: before_script:
- mkdir -p ~/.docker - mkdir -p ~/.docker
- echo $DOCKER_CONFIG_JSON | base64 -d > ~/.docker/config.json - echo $DOCKER_CONFIG_JSON | base64 -d > ~/.docker/config.json
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment