Skip to content

Commit

Permalink
Merge pull request #18 from ThatKalle/feat-devcontainer
Browse files Browse the repository at this point in the history
feat: devcontainer
  • Loading branch information
mverch67 authored Nov 7, 2024
2 parents 638b404 + 10cdacf commit be443a5
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"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"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "trunk.io",
"trunk.enableWindows": true,
"files.insertFinalNewline": false,
"files.trimFinalNewlines": false,
"cmake.configureOnOpen": false,
"[cpp]": {
"editor.defaultFormatter": "trunk.io"
}
}
}
},

"postCreateCommand": "npm install lv_i18n -g --no-fund"
}
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format.
"recommendations": ["Trunk.io"]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// See https://code.visualstudio.com/docs/getstarted/settings#_settings-json-file
// for the documentation about the settings.json format.
"editor.formatOnSave": true,
"editor.defaultFormatter": "trunk.io",
"trunk.enableWindows": true,
"files.insertFinalNewline": false,
"files.trimFinalNewlines": false,
"cmake.configureOnOpen": false,
"[cpp]": {
"editor.defaultFormatter": "trunk.io"
}
}

0 comments on commit be443a5

Please sign in to comment.