docker in docker (dind) image with docker compose for running concourse tasks
100K+
this docker image and helper library allows running docker-in-docker with docker-compose on concourse ci
the image also has bash to support the helper library
included in the hooks dir, these scripts are executed by docker hub to automatically build and push images for the docker engine versions in docker-engine-versions
each image will be tagged with the docker engine version used during the build, e.g. 18.06
labels docker.engine.version and docker.compose.version also contain the docker engine and docker compose versions in the image
included in the lib dir is docker-v1.bash which is based on the common script from the concourse-docker-resource
to use the helper script, run /bin/bash as your entrypoint and then source the script file (installed to /usr/local/lib/concourse-docker-compose/${LIB_FILE}):
- task: run-hello-world
image: concourse-docker-compose
privileged: true
config:
platform: linux
run:
path: /bin/bash
args:
- -c
- |
set -e
source /usr/local/lib/concourse-docker-compose/docker-v1.bash
start_docker
docker run hello-world
stop_docker
start_docker
stop_docker when the process exitsstop_docker
save_image NAME TAG DIR [FILENAME (default: image)] [ID_FILENAME (default: image-id)]
checks if image was already saved under {DIR}/{FILENAME} with a {DIR}/{ID_FILENAME}
if current image-id matches {DIR}/{ID_FILENAME}, and {DIR}/{FILENAME} exists, does not save (no-op)
if mismatch, or {DIR}/{FILENAME} is missing, saves to {DIR}/{FILENAME} and updates {DIR}/{ID_FILENAME}
example for docker-image:
save_image "foo/bar" "latest" "image-output"
example for registry-image:
save_image "foo/bar" "latest" "image-output" "image.tar" "digest"
load_image NAME TAG DIR [FILENAME (default: image)] [ID_FILENAME (default: image-id)]
checks if {DIR}/{FILENAME} exists
docker load on {DIR}/{FILENAME}checks if {DIR}/{ID_FILENAME} exists
{DIR}/{ID_FILENAME} as {NAME}:{TAG}example for docker-image:
load_image "foo/bar" "build" "image-cache"
example for registry-image:
load_image "foo/bar" "build" "image-cache" "image.tar" "digest"
the script build in the scripts dir will build the image for the specified docker engine version
this can be used for building the image locally, for development or testing
e.g.:
./scripts/build 18.06
see LICENSE
some parts from docker-image-resource licensed under Apache 2.0
Content type
Image
Digest
Size
69.9 MB
Last updated
almost 7 years ago
docker pull snapkitchen/concourse-docker-compose:18.06