modified: .devcontainer/devops-dev/devcontainer.json
All checks were successful
/ build-docker-image (push) Successful in 40s

modified:   README.md
This commit is contained in:
2025-11-19 22:24:10 +00:00
parent 06e545d07c
commit 3e370d8d7a
2 changed files with 24 additions and 1 deletions

View File

@@ -20,6 +20,11 @@
"runArgs": [ "runArgs": [
"--hostname=devops" "--hostname=devops"
], ],
"mounts": [
"source=${localEnv:HOME}/.kube,target=/home/vscode/.kube,type=bind",
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind",
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind"
],
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [

View File

@@ -31,8 +31,26 @@ mkdir -p .devcontainer
curl -sSL https://gitlimbosolutions.com/mf/devcontainers/devops/templates/devcontainer.json -o .devcontainer/devcontainer.json curl -sSL https://gitlimbosolutions.com/mf/devcontainers/devops/templates/devcontainer.json -o .devcontainer/devcontainer.json
``` ```
This will copy the baseline devcontainer.json into your project. You can then layer projectspecific extensions or settings on top. This will copy the baseline devcontainer.json into your project.
From there, you can layer projectspecific extensions or settings on top.
🔧 Local Overrides with devcontainer.local.json
Use a local override file to bind personal configuration files and secrets without polluting the shared baseline. For example, to mount your kube config, git settings, and SSH keys:
```json
"mounts": [
"source=${localEnv:HOME}/.kube,target=/home/vscode/.kube,type=bind", // enables kube-related plugins and CLI
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind", // enables git-related plugins and CLI
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind" // enables SSH-based plugins and CLI
]
```
✅ Keeps sensitive paths out of version control
✅ Ensures plugins and CLI tools can access your local configs
✅ Fully replaces the mounts array from the baseline when defined locally
## 🧾 Included Components ## 🧾 Included Components