Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madduci/docker-cpp-env
Minimal C++ development environment including gcc, CMake and conan, using Alpine Linux
https://github.com/madduci/docker-cpp-env
cmake conan cpp
Last synced: 4 months ago
JSON representation
Minimal C++ development environment including gcc, CMake and conan, using Alpine Linux
- Host: GitHub
- URL: https://github.com/madduci/docker-cpp-env
- Owner: madduci
- License: mit
- Created: 2018-05-23T20:42:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T04:19:24.000Z (almost 3 years ago)
- Last Synced: 2024-09-27T06:42:14.319Z (4 months ago)
- Topics: cmake, conan, cpp
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 30
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-cpp-env
Minimal C++ development environment including gcc, CMake, cppcheck and conan, using Alpine Linux
## Caveats
The working directory is set to `/project` and this is a folder that should be mounted from your host system to the docker image.
The image exposes as entrypoint the command `bash -c`, which allows you to give a sequence of commands, all included in quotation symbols (`""`) and let bash execute them. Alternatively, you can override the entrypoint by passing `--entrypoint whatever_you_want` as argument to `docker` command.
## Usage Examples
### conan based projects
`docker run --rm -it -v $(pwd):/project madduci/docker-cpp-env:latest "mkdir -p build && cd build && conan install .. && conan build .."`
### CMake based projects
`docker run --rm -it -v $(pwd):/project madduci/docker-cpp-env:latest "mkdir -p build && cd build && cmake .. && make"`
### Makefile based projects
`docker run --rm -it -v $(pwd):/project madduci/docker-cpp-env:latest "make"`
### g++ based projects
`docker run --rm -it -v $(pwd):/project madduci/docker-cpp-env:latest "g++ yourfile.cpp youroutput.o"`
### Shell Access
`docker run --rm -it --entrypoint bash -v $(pwd):/project madduci/docker-cpp-env:latest`