Sign inSign up

toilal/docker-compose-ci-runner

By toilal

•Updated over 8 years ago

Docker Compose and Docker CLI container crafted for CI runners (Jenkins Pipeline, Gitlab CI ...)

Image
0

1.0K

toilal/docker-compose-ci-runner repository overview

⁠Docker Compose

Docker Automated buil Docker Pulls GitHub issues GitHub stars

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".

⁠Docker versions supported

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.

⁠Usage instructions for Jenkins CI

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'
            }
        }
    }
}

⁠Usage instructions for GitLab CI

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

⁠Contributing

  • Make changes in Dockerfile.template.

  • Run ./render.sh.

  • Run ./build.sh to build images locally.

⁠Author

This is a fork of image provided by Tobias L. Maier⁠ for BauCloud GmbH⁠.

Tag summary

Content type

Image

Digest

Size

56.3 MB

Last updated

over 8 years ago

docker pull toilal/docker-compose-ci-runner