Docker Orchestrator
Type | Flexible |
---|---|
Image | $DATAOPS_DOCKER_RUNNER_IMAGE |
The Docker orchestrator is a flexible orchestrator, allowing arbitrary Docker images to be run as part of a pipeline, thereby orchestrating existing applications by building these applications into a custom Docker container.
The orchestrator comes prepackaged with the following tools:
- docker
- docker-compose
- git
Usage
A typical use case for the Docker orchestrator is running prepackaged applications that might only be available as a binary.
pipelines/includes/local_includes/docker_jobs/version_check.yml
docker-runner Check versions:
extends:
- .agent_tag
stage: "Additional Configuration"
image: $DATAOPS_DOCKER_RUNNER_IMAGE
variables:
DOCKER_AUTH_CONFIG: {\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"ZGF0YW9wc3JlYWRzZXJ2aWNldXNlcjpxZjJoOTM3MmZnM2lvdWczODQ=\"}}}
script:
- docker run --rm --entrypoint /bin/bash $DATAOPS_DOCKER_RUNNER_IMAGE -c "docker --version"
- docker run --rm --entrypoint /bin/bash $DATAOPS_DOCKER_RUNNER_IMAGE -c "docker-compose --version"
- docker run --rm --entrypoint /bin/bash $DATAOPS_DOCKER_RUNNER_IMAGE -c "git --version"
icon: ${DOCKER_ICON}
Supported parameters
Parameter | Required/Default | Description |
---|---|---|
DOCKER_AUTH_CONFIG | Optional | If you require to use images from a private docker registry |
If you require to access a private docker registry, follow the steps at
https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#configure-a-job to populate the content of your DOCKER_AUTH_CONFIG
variable
Example Jobs
None
Project Resources
None
Host dependencies (and Resources)
None