A Docker development box for C/C++.
This is a Docker container based on Debian Linux (see Dockerfile). It sets up a C++ development environment for Visual Studio Code. The pre-installed tools include: cppcheck, x, y.
Base: Debian 12 - Bookworm
On top of the base image the following tools are installed:
- zsh, git, nano, jq
- curl, wget
- cppcheck, valgrind, ccache
- CMake
- vcpkg
The following C/C++ compilers and their toolchains are available:
- LLVM v16
- GCC v12
You need the following things to run this:
- Docker
- Visual Studio Code
There are two ways of setting the container up.
Either by building the container image locally or by fetching the prebuild container image from the Github container registry.
-
Get the source: clone this repository using git or download the zip
-
In VSCode open the folder in a container (
Remote Containers: Open Folder in Container
):This will build the container image (
Starting Dev Container (show log): Building image..
)Which takes a while...
Then, finally...
-
Enjoy! 😎
This container image is published to the Github Container Registry (GHCR).
You may find the package here: https://github.com/jakoch/cpp-devbox/pkgs/container/cpp-devbox.
You can install the container image from the command line:
docker pull ghcr.io/jakoch/cpp-devbox:latest
You might also use this container image as a base image in your own Dockerfile:
FROM ghcr.io/jakoch/cpp-devbox:latest