From 4638cf9e47e01eabe54b13716026722cde979ef6 Mon Sep 17 00:00:00 2001 From: Kalle <15094562+ThatKalle@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:11:05 +0100 Subject: [PATCH] Add inital devcontainer --- .devcontainer/Dockerfile | 15 +++++++++++++++ .devcontainer/devcontainer.json | 26 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..70ada49 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,15 @@ +# trunk-ignore-all(trivy/DS026) +# trunk-ignore-all(trivy/DS002) +# trunk-ignore-all(checkov/CKV_DOCKER_2) +# trunk-ignore-all(checkov/CKV_DOCKER_3) +FROM mcr.microsoft.com/devcontainers/cpp:1-debian-12 + +# trunk-ignore(terrascan/AC_DOCKER_0002) +# trunk-ignore(hadolint/DL3008) +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + ca-certificates \ + git \ + wget \ + zip \ + && apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fa9bacc --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +{ + "name": "Meshtastic Device-UI Dev", + "build": { + "dockerfile": "Dockerfile" + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/trunk-io/devcontainer-feature/trunk:1": {}, + "ghcr.io/devcontainers/features/node:1": {} + }, + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "Trunk.io", + "ms-vscode.cpptools-extension-pack", + "ms-azuretools.vscode-docker" + ] + } + }, + + "postCreateCommand": "npm i lv_i18n -g" +}