Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melroy89/cmake-docker
Cmake, Ninja, Boost, ccpcheck/ccplint, doxygen Docker image
https://github.com/melroy89/cmake-docker
boost build cicd cmake cppcheck docker docker-image doxyen gdb ninja valgrind
Last synced: about 1 month ago
JSON representation
Cmake, Ninja, Boost, ccpcheck/ccplint, doxygen Docker image
- Host: GitHub
- URL: https://github.com/melroy89/cmake-docker
- Owner: melroy89
- License: agpl-3.0
- Created: 2020-05-13T16:17:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-29T18:50:30.000Z (4 months ago)
- Last Synced: 2024-06-29T19:47:51.206Z (4 months ago)
- Topics: boost, build, cicd, cmake, cppcheck, docker, docker-image, doxyen, gdb, ninja, valgrind
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/danger89/cmake
- Size: 47.9 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cmake, Ninja, Boost, cppcheck/cpplint, Doxygen Docker Image
All the packages you will ever need to build your modern C++ code with [Cmake](https://cmake.org/) in a Docker container. Based on Debian Bookworm slim.
Optionally you can use the [Ninja build system](https://ninja-build.org/) and [Boost libraries](https://www.boost.org/).
The image also includes test tools (like `cppcheck`, `cpplint` and `doxygen`).
This Docker image also contains other useful programs, like: `gdb`, `valgrind`, `clang-format` and `dot` (generating directed graphs) are installed.## Installation
1. Install [Docker](https://www.docker.com/)
2. Pull the image directly from DockerHub:
```sh
docker pull danger89/cmake:latest
```Or use a specific tag:
```sh
docker pull danger89/cmake:5.1
```**Note:** Since tag `4.0` and until tag `4.6`, Debian Bullseye was used for GCC 10 compiler.
**Note:** Since tag `4.4` and higher, we build cppcheck ourselves, so we get the [latest stable cppcheck](https://cppcheck.sourceforge.io/).
**Important:** Since tag `5.0` and higher (including `latest` tag) the base image is now based on Debian Bookworm instead of Bullseye. We're now using GCC/G++ v12 with CMake v3.25.
## Usage
Ideally, use this Docker image within a CI/CD pipeline of your choice.
Alternatively, you could use: `docker run danger89/cmake`. Mount any volume via `-t` option on your host OS, like the `/root` folder.
## Build
Building the image yourself is also possible (but _not_ required), via:
```sh
docker build --tag danger89/cmake .
```