Skip to content

Commit

Permalink
chore: update devcontainer
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <devin@buhl.casa>
  • Loading branch information
onedr0p committed Dec 2, 2023
1 parent 2a1e4a4 commit 4400029
Showing 1 changed file with 44 additions and 86 deletions.
130 changes: 44 additions & 86 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,87 +1,45 @@
{
"name": "Home Ops",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"containerEnv": {
"KUBECONFIG": "${containerWorkspaceFolder}/kubeconfig",
"SOPS_AGE_KEY_FILE": "${containerWorkspaceFolder}/.age.key"
},
"postCreateCommand": {
// Install additional python dependencies for ansible
"deps": "task deps"
},
"features": {
// Upgrade OS packages
"ghcr.io/devcontainers/features/common-utils:2": {
"version": "latest",
"installZsh": false,
"installOhMyZsh": false
},
// Install go-task
"ghcr.io/devcontainers-contrib/features/go-task:1": {
"version": "latest"
},
// Install python and ansible
// Not using the python feature because it includes vscode extentions and we don't want that.
// See https://github.com/devcontainers/features/blob/d53b9d1816bac7a62f9ba5f20723eef428042d1f/src/python/devcontainer-feature.json#L64
// One day disable with https://github.com/devcontainers/features/issues/386
"ghcr.io/devcontainers-contrib/features/ansible:2": {
"version": "latest"
},
// Install age
"ghcr.io/devcontainers-contrib/features/age:1": {
"version": "latest"
},
// Install cilium-cli
"ghcr.io/audacioustux/devcontainers/cilium:1": {
"version": "latest"
},
// Install cloudflared
"ghcr.io/devcontainers-contrib/features/cloudflared:1": {
"version": "latest"
},
// Install flux-cli
"ghcr.io/jsburckhardt/devcontainer-features/flux:1": {
"version": "latest"
},
// Install kubectl and helm
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
"version": "latest",
"helm": "latest",
"minikube": "none"
},
// Install kustomize
"ghcr.io/rio/features/kustomize:1": {
"version": "latest"
},
// Install sops
"ghcr.io/devcontainers-contrib/features/sops:1": {
"version": "latest"
},
// Install stern
"ghcr.io/dhoeric/features/stern:1": {
"version": "latest"
},
// Install jq
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {
"jqVersion": "latest"
}
// Find more features at https://containers.dev/features
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash"
}
},
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
// Add any additional extensions you always want installed here
"redhat.ansible",
"redhat.vscode-yaml"
]
}
}
}
"name": "Home Ops",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"containerEnv": {
"KUBECONFIG": "${containerWorkspaceFolder}/kubeconfig",
"SOPS_AGE_KEY_FILE": "${containerWorkspaceFolder}/.age.key"
},
"postCreateCommand": {
"deps": "task deps"
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
"minikube": "none"
},
"ghcr.io/devcontainers-contrib/features/age:1": {},
"ghcr.io/devcontainers-contrib/features/cloudflared:1": {},
"ghcr.io/devcontainers-contrib/features/go-task:1": {},
"ghcr.io/devcontainers-contrib/features/python:1": {},
"ghcr.io/devcontainers-contrib/features/sops:1": {},
"ghcr.io/audacioustux/devcontainers/cilium:1": {},
"ghcr.io/dhoeric/features/stern:1": {},
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {},
"ghcr.io/jsburckhardt/devcontainer-features/flux:1": {},
"ghcr.io/rio/features/kustomize:1": {}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
"redhat.ansible",
"redhat.vscode-yaml"
]
}
}
}

0 comments on commit 4400029

Please sign in to comment.