This repository contains the Dockerfile to build the ghcr.io/educelab/ci-docker
Docker image. This image contains all prerequisite libraries required
to build and test the
volume-cartographer
project. Most of the build is handled by
vc-deps so that consistency can be
maintained across platforms.
- Docker engine 19.03+
-
Get the source code for the repository:
git clone --recursive https://github.com/educelab/ci-docker cd ci-docker
-
Update the version number, packages, and code references. See Updating the version.
-
If your changes don't affect the base image, pull the latest base image from the registry to avoid rebuilding it:
docker pull ghcr.io/educelab/ci-docker:base.latest
-
Set up a multi-arch Docker builder and run the build script:
docker buildx create --use ./build.sh
Change the version components in build.sh. Values should match the rules for semantic versioning:
# build.sh
VER_MAJOR=12
VER_MINOR=1
VER_PATCH=0
- Set
VER_MAJOR
to the Debian version number - Set
VER_MINOR=0
- Set
VER_PATCH=0
- Increment
VER_MINOR
- Set
VER_PATCH=0
- Remove your local copy of
ci-docker:base.latest
- Increment
VER_PATCH
- Increment
VER_MINOR
- Set
VER_PATCH=0
- Checkout the appropriate ref in the vc-deps directory
- Increment
VER_MINOR
- Set
VER_PATCH=0
- Checkout the appropriate ref in the vc-deps directory
- Increment
VER_PATCH