From 7f7c65e3fae8c758a3cc23064c24b0e819c1a5b2 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Wed, 16 Feb 2022 09:36:43 +0100 Subject: [PATCH] VSCode: Add development container Signed-off-by: Thomas Klaehn --- .devcontainer/devcontainer.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..6000590 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,30 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.163.1/containers/cpp +{ + "name": "bicycle-statistics", + "image": "bic-dev:latest", + + // --network=host is necessary, since default docker network does not transport mdns|dns-sd, since they route through docker0 + // "runArgs": [ "--network=host", "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], + + // Set *default* container specific settings.json values on container create. + "settings": { + "terminal.integrated.defaultProfile.linux.shell":"/bin/sh" + }, + + // Add the IDs of extensions you want installed when the container is created. + // "extensions": [ + // "ms-vscode.cpptools" + // ], + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "gcc -v", + + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + // "remoteUser": "vscode", + + // "postStartCommand" : "sudo rm /var/run/avahi-daemon/pid; sudo avahi-daemon --no-drop-root --no-chroot -D || true", +} \ No newline at end of file