Skip to content

Commit 073e645

Browse files
mnencialeonardoce
andauthored
ci: add devcontainer configuration (cloudnative-pg#2418)
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>
1 parent 23d801d commit 073e645

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.devcontainer/devcontainer.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/go:1",
3+
"features": {
4+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
5+
"ghcr.io/rio/features/k3d:1": {},
6+
"ghcr.io/mpriscella/features/kind:1": {},
7+
"ghcr.io/rjfmachado/devcontainer-features/cloud-native:1": {
8+
"kubectl": "latest",
9+
"helm": "latest",
10+
"kubelogin": "none",
11+
"azwi": "none",
12+
"flux": "none",
13+
"cilium": "none"
14+
},
15+
"ghcr.io/guiyomh/features/golangci-lint:0": {},
16+
"ghcr.io/devcontainers-contrib/features/kubectx-kubens:1": {},
17+
"ghcr.io/dhoeric/features/stern:1": {}
18+
},
19+
20+
// Needed by kind and k3s to enable kube-proxy's ipvs mode
21+
"mounts":["type=bind,source=/lib/modules,target=/lib/modules"],
22+
23+
// Enable kubectl short alias with completion
24+
"postCreateCommand": "echo 'alias k=kubectl; complete -F __start_kubectl k' >> ~/.bash_aliases"
25+
}

0 commit comments

Comments
 (0)