Skip to content

Designed as a base template for building C++ with Conan and CMake dependency management.

Notifications You must be signed in to change notification settings

CJO-20/docker_cpp_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker C++ Template

This is a docker C++ template project, with an example multi-threaded program that consumes the numbers [0, 99] and outputs them to stdout.

Building Docker Image

You can build the docker image for this example by running the following command below:

docker build -t <your_docker_image_name_here> .

Running the docker image

You can create a docker container that will run this image (in interactive mode) with the following command:

docker run -it <your_docker_image_name_here>

Running without docker

Running this project without docker will require you to have the following items installed:

  1. A modern C++ compiler (gcc17+ or clang17+).
  2. Conan 2.0+
  3. CMake 3.25.1+

Building

Assuming all of the above items are installed, you can build the project by running the command below:

sh build.sh

Running

Once built, you can execute the project by running the command below:

sh run.sh

About

Designed as a base template for building C++ with Conan and CMake dependency management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published