This is a docker base image with compose installed to be used in your pipelines.
This image includes a few extra helpful utilities such as jq
and curl
On whatever stage you need compose on, add the following image and services. I have included some compose examples for you.
build something cool:
stage: build
image: tomfordweb/compose-dind:latest
services:
- docker:dind
script:
- docker-compose -f docker-compose.yml -f docker-compose.production.yml build
- docker-compose -f docker-compose.yml -f docker-compose.production.yml push
test something cool:
stage: test
image: tomfordweb/compose-dind:latest
services:
- docker:dind
script:
- docker-compose run my-app test