- Install Docker
git clone https://github.com/Dalzhim/DockerBuildCpp.git
cd DockerBuildCpp
- Create the Docker container that holds the toolchain :
docker build -t toolchain toolchain
- Execute the toolchain container to build the Hello World application :
docker run --rm -it -v $(pwd)/src:/Sources -v $(pwd)/Build:/Build -v $(pwd)/Install:/Install --user $(id -u):$(id -g) toolchain
- Execute the Hello World application :
docker run --rm -it -v $(pwd)/Install:/Install --user $(id -u):$(id -g) --workdir /Install/bin --entrypoint ./hellocpp toolchain
- If the
docker build -t toolchain toolchain
command generates permission errors, make sure you followed Docker's instructions to enable the use of thedocker
command without usingsudo
. Otherwise, usesudo docker […]
everywhere.
- build with docker and conan
- do library
- do includos restAPI
- add more build/run type