https://github.com/brakmic/cppdev
C++ Development Docker Container
https://github.com/brakmic/cppdev
cmake cpp docker gcc gpp
Last synced: 30 days ago
JSON representation
C++ Development Docker Container
- Host: GitHub
- URL: https://github.com/brakmic/cppdev
- Owner: brakmic
- License: mit
- Created: 2025-02-25T15:25:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T17:21:57.000Z (over 1 year ago)
- Last Synced: 2025-02-25T17:31:22.690Z (over 1 year ago)
- Topics: cmake, cpp, docker, gcc, gpp
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Development Environment in Docker
This repository provides a lightweight Docker image for modern C++ development, using Ubuntu 24.04 as the base and GCC/G++ 14 as the default compiler.
## Features
- **Ubuntu 24.04** for a recent Linux environment
- **GCC/G++ 14** set as default compilers
- Essential build tools: `cmake`, `ninja-build`, `valgrind`, etc.
- Common utilities for networking and debugging (`net-tools`, `iproute2`, `gdb`, `strace`, etc.)
- Non-root user `cppdev` with passwordless sudo
## Getting Started
### Pull the Image
```bash
docker pull brakmic/cppdev:latest
```
### Run the Container
```bash
docker run -it --rm -v $(pwd):/workspace brakmic/cppdev:latest
```
- `-it` starts an interactive session.
- `--rm` cleans up the container after you exit.
- `-v $(pwd):/workspace` mounts the current directory into the `/workspace` folder inside the container, so you can work with your local files.
## Usage
Inside the container, you have:
- GCC/G++ 14
- `cmake`, `ninja`, and other build tools
- `git`, `nano`, and other essential utilities
By default, you’ll be dropped into a bash shell as the `cppdev` user. Any changes in `/workspace` will be reflected on your host machine’s current directory due to the volume mount.
## License
[MIT](./LICENSE)