Based on concourse-dcind, but with make.
257
Optimized for use with Concourse CI.
The image is Alpine based, and includes Docker, Docker Compose, and Docker Squash, as well as Bash.
Image published to Docker Hub: karlkfi/concourse-dcind.
Inspired by meAmidos/dcind, concourse/docker-image-resource, and mesosphere/mesos-slave-dind.
Unlike meAmidos/dcind, this image...
DOCKERD_TIMEOUT) on dockerd start to account for mis-configuration (docker log will be output).DOCKER_OPTS environment variable.--garden-mtu from the parent Gardian container if --mtu is not specified in DOCKER_OPTS.--data-root /scratch/docker to bypass the graph filesystem if --data-root is not specified in DOCKER_OPTS.docker build -t karlkfi/concourse-dcind .
Here is an example of a Concourse job that uses karlkfi/concourse-dcind image to run a bunch of containers in a task, and then runs the integration test suite. You can find a full version of this example in the example directory.
jobs:
- name: integration
plan:
- get: code
params:
depth: 1
passed:
- unit-tests
trigger: true
- task: integration-tests
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: karlkfi/concourse-dcind
inputs:
- name: code
run:
path: entrypoint.sh
args:
- bash
- -ceux
- |
# start containers
docker-compose -f code/example/integration.yml run tests
# stop and remove containers
docker-compose -f code/example/integration.yml down
# remove volumes
docker volume rm $(docker volume ls -q)
Content type
Image
Digest
Size
55.3 MB
Last updated
almost 8 years ago
docker pull rickardl/concourse-dcind