Skip to content

evanxg852000/cpp-conan-docker-starter

Repository files navigation

A C++ docker base project

This docker image will serve as your base c++ project structure. It uses cmake with the conan package manager, all your compilation and test will be run inside a docker image base on GCC 9.3.0

Registry

https://bintray.com/conan/conan-center

Included Libraries

How to run

Run using docker or docker-compose, also refer to entrypoint.sh for available script.

docker-compose up 
docker build -t cppimage .
docker run -it -v "$PWD":"/usr/project" cppimage bash
docker run -v "$PWD":"/usr/project" cppimage build
conan install ..  -s build_type=Release --build
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build .