Docker Compose and Docker CLI container crafted for CI runners (Jenkins Pipeline, Gitlab CI ...)
938
This docker image installs docker-compose and bash on top of the docker image.
This is very usefull for CI pipelines, which leverage "Docker in Docker".
There are versions based on different docker versions, e.g. latest, 17.06, 17.03 and 1.13.
Please open an issue or a pull request (preferred) at GitHub, if a version is missing.
You may use it like this in your .gitlab-ci.yml file.
pipeline {
agent {
docker {
image 'toilal/docker-compose-ci-runner'
args '-v /var/run/docker.sock:/var/run/docker.sock --user root:root'
}
}
stages {
stage('versions') {
steps {
sh 'docker info'
sh 'docker-compose --version'
}
}
stage('build') {
steps {
sh 'docker-compose build'
}
}
}
}
You may use it like this in your .gitlab-ci.yml file.
image: toilal/docker-compose-ci-runner:latest
services:
- docker:dind
before_script:
- docker info
- docker-compose --version
build image:
stage: build
script:
- docker-compose build
Make changes in Dockerfile.template.
Run ./render.sh.
Run ./build.sh to build images locally.
This is a fork of image provided by Tobias L. Maier for BauCloud GmbH.
Content type
Image
Digest
Size
56.3 MB
Last updated
over 8 years ago
docker pull toilal/docker-compose-ci-runner