-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ThatKalle/feat-devcontainer
feat: devcontainer
- Loading branch information
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |