Add devcontainer

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2024-01-13 20:54:46 +01:00
parent 0949422dc9
commit b90c918613
5 changed files with 39 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
{
"name": "Pi-hole doc devcontainer",
"dockerFile": "Dockerfile",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sh .devcontainer/post-create.sh",
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
"extensions": [
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"github.vscode-github-actions",
"DavidAnson.vscode-markdownlint"
]
}
},
"containerEnv": {
"GIT_EDITOR": "nano"
},
"mounts": [
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/node/.ssh,readonly"
]
}