Docker image for C++ CI.
make image
Also, you can use Docker Hub image as cache source:
docker pull rudenkornk/docker_cpp:latest
DOCKER_CACHE_FROM=rudenkornk/docker_cpp:latest make image
make check
make container
docker attach docker_cpp_container
# OR
docker exec -it --user $(id --user) docker_cpp_container bash
make clean
# Optionally clean entire docker system and remove ALL containers
./clean_all_docker.sh
This repository supports two different scenarios
docker run --interactive --tty \
--env USER_ID="$(id --user)" --env USER_NAME="$(id --user --name)" \
--mount type=bind,source="$(pwd)",target="$(pwd)" \
--workdir "$(pwd)" \
rudenkornk/docker_cpp:latest
Instead of $(pwd)
use path to your C++ repo.
# Ask system administrator to install necessary packages
./install_gcc.sh
./install_llvm.sh
./install_cmake.sh
./install_python.sh
./install_conan.sh
./config_system.sh
# Config normal user
cp --recursive conan ~/.conan
~/.conan/config_conan.sh