Skip to content

Commit

Permalink
ci: add devcontainer configuration (cloudnative-pg#2418)
Browse files Browse the repository at this point in the history
The devcontainer configuration allows any user to instantly configure an environment
capable of running all the tests (including E2E) and works well with [devpod](http://devpod.sh)

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
  • Loading branch information
mnencia and leonardoce authored Jul 12, 2023
1 parent 23d801d commit 073e645
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"image": "mcr.microsoft.com/devcontainers/go:1",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/rio/features/k3d:1": {},
"ghcr.io/mpriscella/features/kind:1": {},
"ghcr.io/rjfmachado/devcontainer-features/cloud-native:1": {
"kubectl": "latest",
"helm": "latest",
"kubelogin": "none",
"azwi": "none",
"flux": "none",
"cilium": "none"
},
"ghcr.io/guiyomh/features/golangci-lint:0": {},
"ghcr.io/devcontainers-contrib/features/kubectx-kubens:1": {},
"ghcr.io/dhoeric/features/stern:1": {}
},

// Needed by kind and k3s to enable kube-proxy's ipvs mode
"mounts":["type=bind,source=/lib/modules,target=/lib/modules"],

// Enable kubectl short alias with completion
"postCreateCommand": "echo 'alias k=kubectl; complete -F __start_kubectl k' >> ~/.bash_aliases"
}

0 comments on commit 073e645

Please sign in to comment.