Commit f31ac9f5 authored by Georgi Petkov's avatar Georgi Petkov
Browse files

chore: wip on docker in docker

parent 57e4f5cf
Pipeline #31561 passed with stages
in 1 minute and 54 seconds
......@@ -10,10 +10,51 @@ build_image:
dependencies:
- build
script:
- cat /etc/os-release
- which docker
- docker -v
- systemctl status docker
# - rc-status --list
# to execute the following command in the parent docker read the following links
# https://docs.gitlab.com/runner/executors/kubernetes.html#using-docker-in-your-builds
# https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#docker-in-docker-with-tls-enabled-in-kubernetes
# https://www.docker.com/blog/docker-can-now-run-within-docker/
#
# Try first to expose /var/run/docker.sock from the parent docker
# https://docs.gitlab.com/runner/executors/kubernetes.html#exposing-varrundockersock
#
# Then check docker:dind way
# https://docs.gitlab.com/runner/executors/kubernetes.html#using-dockerdind
# https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-workflow-with-docker-executor
#
#
# current gitlab-runner in docker mode config.toml
# -------------
# concurrent = 10
# check_interval = 0
# [session_server]
# session_timeout = 1800
# [[runners]]
# name = "gitlab-runner-docker-new"
# url = "https://git.brickblock.sh"
# token = "some token here"
# executor = "docker"
# environment = ["FF_GITLAB_REGISTRY_HELPER_IMAGE=true"]
# [runners.custom_build_dir]
# [runners.docker]
# tls_verify = false
# image = "docker:latest"
# privileged = true
# disable_entrypoint_overwrite = false
# oom_kill_disable = false
# disable_cache = false
# volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
# shm_size = 0
# [runners.cache]
# [runners.cache.s3]
# [runners.cache.gcs]
# [runners.custom]
# run_exec = ""
#
# The goal is to share the parent docker socket that can be achieved locally via the following command
# docker run -v /var/run/docker.sock:/var/run/docker.sock -ti docker
- docker login --username gitlab-ci-token --password $CI_BUILD_TOKEN
$CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG || true
......
Markdown is supported
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