Sign inSign up

ictus4u/yacpp

By ictus4u

Updated about 5 years ago

Yet another C++ development environment.

Image
0

10K+

ictus4u/yacpp repository overview

yacpp

Yet another C++ development environment.

Description

Contains popular tools in the build stack of a C++ project.

Using the gcc base image.

The working directory is set to /project. It is exposed as a volume for hinting the code could be mounted here from the host.

The defined bash -c entrypoint allows you to write a command sequence included in quotation marks and let bash execute these, as shown below.

You can override the entrypoint for a docker container while passing --entrypoint your_entry_point as an argument to the docker run command. See an example below.

Basic Usage Examples

g++ based project

docker run --rm -it -v $(pwd):/project ictus4u/cpp "g++ -Wall --std=c++20 -O3 -o hello hello.cpp"

Makefile based project

docker run --rm -it -v $(pwd):/project ictus4u/cpp "make"

CMake based project

docker run --rm -it -v $(pwd):/project ictus4u/cpp "mkdir -p build && cd build && cmake .. && make"

conan based project

docker run --rm -it -v $(pwd):/project ictus4u/cpp "mkdir -p build && cd build && conan install .. && conan build .."

Shell Access

docker run --rm -it --entrypoint bash -v $(pwd):/project ictus4u/cpp

Tag summary

Content type

Image

Digest

Size

557.2 MB

Last updated

about 5 years ago

docker pull ictus4u/yacpp