oneoffcoder/cpp-cicd

By oneoffcoder

Updated about 3 years ago

C++ build environment with CMake and Boost.

Image
0

356

oneoffcoder/cpp-cicd repository overview

Purpose

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

Source Code is available on GitHub.

Tag summary

Content type

Image

Digest

sha256:074ee6002

Size

4 GB

Last updated

about 3 years ago

docker pull oneoffcoder/cpp-cicd:0.0.5