Our docker-in-docker image with Python.
We use this image in our GitLab-based builds. Like:
It really helps us to speed up the build and fix possible errors in one place.
Example usage:
build:
image: wemakeservices/wemake-dind:latest
interruptible: true
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
before_script:
- echo 'Done!'
We use tags, however in this particular case we enforce using :latest
.
It should always just work.
Our tag policy is:
- First two version numbers are identical to the
docker
version tag, soFROM docker:20.10
will always producewemake-dind:20.10.x
- The last version number is a patch release, it is our custom one and is not related to
docker
tags at all