Docker container containing all needed Linux C/C++ build tools. Each container will contain only one version of either GCC or Clang but will contain all additional libraries and build tools needed (Python 3, Ninja, etc). Currently we only support x86-64 compilers.
There are 2 ways to use this container Interactive and Command mode.
This will drop you into an interactive bash
session.
docker run -it -v /src:/src build-linux
This will run the supplied command directly.
docker run -v /src:/src build-linux [command]
docker build . -t build-linux \
--build-arg COMPILER_PACKAGES='[clang*|gcc* g++*]' \
--build-arg C_COMPILER_NAME='[clang*|gcc*]' \
--build-arg CPP_COMPILER_NAME='[clang++*|g++*]'
Currently only version 9
, 10
and 11
of GCC and 9
, 10
, 11
and
12
of Clang are supported.
docker build . -t build-linux \
--build-arg COMPILER_PACKAGES='gcc-10 g++-10' \
--build-arg C_COMPILER_NAME='gcc-10' \
--build-arg CPP_COMPILER_NAME='g++-10'