cpp-cicd
C++ build environment with CMake and Boost.
356
This is a generic C++ build environment using CMake (build tool) and Boost (testing framework). To use this Docker container, type in the following.
docker run \
-v `pwd`:/project \
oneoffcoder/cpp
Your source code will be mounted to /project and a build script will execute against it. The build script is as follows.
#!/bin/bash
[ -d "/project/cmake-build-debug" ] && rm -fr /project/cmake-build-debug
[ ! -d "/project/cmake-build-debug" ] && mkdir /project/cmake-build-debug
cd /project/cmake-build-debug
cmake ..
make clean
make
make test
Content type
Image
Digest
sha256:074ee6002…
Size
4 GB
Last updated
about 3 years ago
docker pull oneoffcoder/cpp-cicd:0.0.5