Sign inSign up

dylankenneally/centoscppbuildtools

By dylankenneally

Updated almost 7 years ago

Docker image for building C++ projects

Image
0

10K+

dylankenneally/centoscppbuildtools repository overview

Docker image for building C++ projects

How to get this docker container

  • Ensure you have Docker installed and running
# make sure you're logged in to the public Docker remote
docker login docker.io

# pull the image
docker pull dylankenneally/centoscppbuildtools:latest

Compile your app inside the Docker container

# compiling C++ apps
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app dylankenneally/centoscppbuildtools:latest g++ -o executable hello-world.cpp 

# using CMake
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app dylankenneally/centoscppbuildtools:latest cmake .

To build the image yourself

  • To build the image yourself
git clone https://github.com/dylankenneally/docker-build-containers.git
cd docker-build-containers
docker build --rm -f Dockerfile . -t dylankenneally/centoscppbuildtools:latest # change the tag name if you intend to `docker push`

More information

Tag summary

Content type

Image

Digest

Size

427.1 MB

Last updated

almost 7 years ago

docker pull dylankenneally/centoscppbuildtools