Yet another C++ development environment.
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.
docker run --rm -it -v $(pwd):/project ictus4u/cpp "g++ -Wall --std=c++20 -O3 -o hello hello.cpp"
docker run --rm -it -v $(pwd):/project ictus4u/cpp "make"
docker run --rm -it -v $(pwd):/project ictus4u/cpp "mkdir -p build && cd build && cmake .. && make"
docker run --rm -it -v $(pwd):/project ictus4u/cpp "mkdir -p build && cd build && conan install .. && conan build .."
docker run --rm -it --entrypoint bash -v $(pwd):/project ictus4u/cpp
Content type
Image
Digest
Size
557.2 MB
Last updated
about 5 years ago
docker pull ictus4u/yacpp