Sign inSign up

madduci/docker-ubuntu-cpp

By madduci

Updated almost 9 years ago

Ubuntu-based Docker image to build C/C++ projects with CMake and gcc, clang or mingw

Image
7

10K+

madduci/docker-ubuntu-cpp repository overview

Docker C++ Templates

The C++ images are based on Ubuntu Linux, using different compilers:

  • gcc
  • mingw
  • clang

At the moment, only gcc is offered for Alpine Linux.

How to run the images

All the images can be run as follows:

docker run -v /path/to/folder/with/CMakeLists/:/project [image_name]

and it will create a subfolder called build/ where all the CMake-generated files will be stored and then it will perform the following commands:

cmake .. cmake --build .

to compile your project.

The following images are available:

madduci/docker-alpine-cpp:gcc-6

Alpine-based Docker minimal image to build C/C++ projects with cmake and gcc 6

madduci/docker-ubuntu-cpp:gcc-6

Ubuntu-based Docker image to build C/C++ projects with cmake and gcc 6

madduci/docker-ubuntu-cpp:mingw-5

Ubuntu-based Docker image to build C/C++ projects with cmake and MinGW 5 and target Windows platform

madduci/docker-ubuntu-cpp:clang-3.9

Ubuntu-based Docker image to build C/C++ projects with cmake and clang 3.9

Tag summary

Content type

Image

Digest

Size

193.5 MB

Last updated

almost 9 years ago

docker pull madduci/docker-ubuntu-cpp