Skip to content

Image for use in CI, includes docker, docker-compose, bash as default shell

License

Notifications You must be signed in to change notification settings

PeaceWorksTechnologySolutions/docker-compose-ci

Repository files navigation

Docker Compose

This docker image installs docker-compose on top of the docker image, and uses bash as the default shell. This is very useful for CI pipelines, which leverage "Docker in Docker".

This image is built using the offical docker image as base, adds bash as the default shell and installs these tools: git rsync jq curl

Usage instructions for GitLab CI

You may use it like this in your .gitlab-ci.yml file.

image: peaceworks/docker-compose-ci:latest

services:
  - docker:dind

before_script:
  - docker info
  - docker-compose --version

build image:
  stage: build
  script:
    - docker-compose build

Common issues and possible fixes

ERROR: error during connect: Get http://docker:2375/v1.40/info: dial tcp: ...

As of version 19.03, docker:dind will automatically generate TLS certificates and require using them for communication.

See tmaier/docker-compose#21 (comment)

Authors

Jason Hildebrand for PeaceWorks Technology Solutions, building on work by Tobias L. Maier for BauCloud GmbH

About

Image for use in CI, includes docker, docker-compose, bash as default shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published