docker icon indicating copy to clipboard operation
docker copied to clipboard

Containers for building C++ on CI

foonathan/docker

This is a collection of docker container I use to test my projects on CI. They are designed to compile a CMake project using Ninja and a specific compiler version and run the tests; not to actually build a released executable or anything like that.

Common Software

  • git
  • CMake 3.21

It is designed for a basic CMake workflow:

cmake /path/to/src
cmake --build .
ctest

This will automatically select the specific compiler and Ninja as generator.

Image ghcr.io/foonathan/clang:

  • clang 6-10 on Debian buster
  • clang 11-13 on Debian bullseye

Image ghcr.io/foonathan/gcc:

  • GCC 7-11