Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
howto-cards
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marie Fossepre
howto-cards
Commits
6679de4a
Verified
Commit
6679de4a
authored
4 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
add overlay vars (1)
parent
d29a384b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-8
25 additions, 8 deletions
.gitlab-ci.yml
with
25 additions
and
8 deletions
.gitlab-ci.yml
+
25
−
8
View file @
6679de4a
...
...
@@ -106,17 +106,34 @@ build:pages:
check:links
:
stage
:
check
image
:
docker
image
:
docker
:19.03.0
variables
:
# When using dind service, we need to instruct docker, to talk with
# the daemon started inside of the service. The daemon is available
# with a network connection instead of the default
# /var/run/docker.sock socket. docker:19.03.1 does this automatically
# by setting the DOCKER_HOST in
# https://github.com/docker-library/docker/blob/d45051476babc297257df490d22cbd806f1b11e4/19.03.1/docker-entrypoint.sh#L23-L29
#
# The 'docker' hostname is the alias of the service container as described at
# https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services.
#
# Note that if you're using the Kubernetes executor, the variable
# should be set to tcp://localhost:2376/ because of how the
# Kubernetes executor connects services to the job container
#DOCKER_HOST: tcp://localhost:2376/
#
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
DOCKER_DRIVER
:
overlay2
#
Create the certificates inside this directory for both the server
#
and client. The certificates used by the client
will
be
create
d in
# /certs/client
so we only need to share this directory with the
# volume mount
in `
config.toml
`.
DOCKER_TLS_CERTDIR
:
"
/certs
"
#
Specify to Docker where to create the certificates, Docker will
#
create them automatically on boot, and
will create
#
`
/certs/client
` that will be shared between the service and job
#
container, thanks to
volume mount
from
config.toml
DOCKER_TLS_CERTDIR
:
"
"
services
:
-
name
:
docker:dind
command
:
[
"
--registry-mirror"
,
"
https://docker-registry.lcsb.uni.lu"
]
-
name
:
docker:
19.03.0-
dind
command
:
[
"
--mtu=1458"
,
"
--registry-mirror"
,
"
https://docker-registry.lcsb.uni.lu"
]
rules
:
-
if
:
$CI_COMMIT_REF_NAME
-
if
:
$CI_MERGE_REQUEST_ID
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment