Added docker configuration

This commit is contained in:
shrukan
2022-12-23 15:05:26 -08:00
parent 46393ea423
commit b9fa8b7479
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,36 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile"
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": ["ms-vscode.cpptools",
"matepek.vscode-catch2-test-adapter",
"streetsidesoftware.code-spell-checker",
"ryanluker.vscode-coverage-gutters",
"cschlosser.doxdocgen",
"asabil.meson",
"eamodio.gitlens"]
}
}
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"
}

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM gcc:12
# Install build tools
RUN apt-get update && apt-get install -y python3 ninja-build python3-pip gdb graphviz git
RUN pip install meson gcovr
# The version of doxy in the Debian repos is too old to support concepts, so we grab the latest release and manually install
RUN wget https://www.doxygen.nl/files/doxygen-1.9.5.linux.bin.tar.gz && \
tar -xzf doxygen-1.9.5.linux.bin.tar.gz && \
cd doxygen-1.9.5 && \
make install && \
cd .. && \
rm -r doxygen-1.9.5.linux.bin.tar.gz && \
rm -r doxygen-1.9.5
WORKDIR /usr/src/app