Skip to content

Commit 5f81100

Browse files
authored
feat: add devcontainer (#446)
1 parent 2e9ec47 commit 5f81100

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "terraform-provider-argocd",
3+
// officiall MS template from https://github.com/devcontainers/templates/tree/main/src/go
4+
"image": "mcr.microsoft.com/devcontainers/go:1.21-bookworm",
5+
"features": {
6+
// https://github.com/devcontainers/features/tree/main/src/docker-in-docker
7+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
8+
"enableNonRootDocker": "false",
9+
"disableIp6tables": true // experienced issues with missing chains in ip6tables when creating kind clusters
10+
},
11+
// https://github.com/devcontainers/features/tree/main/src/terraform
12+
"ghcr.io/devcontainers/features/terraform:1": {
13+
"version": "1.9.7" // omit for latest
14+
},
15+
// https://github.com/mpriscella/features/tree/main/src/kind
16+
"ghcr.io/mpriscella/features/kind:1": {
17+
"version": "v0.20.0" // omit for latest
18+
},
19+
// https://github.com/devcontainers/features/tree/main/src/kubectl-helm-minikube
20+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
21+
"version": "1.27.11"
22+
},
23+
// https://github.com/rio/features/tree/main/src/kustomize
24+
"ghcr.io/rio/features/kustomize:1": {},
25+
// https://github.com/guiyomh/features/blob/main/src/goreleaser
26+
"ghcr.io/guiyomh/features/goreleaser:0": {},
27+
// https://github.com/audacioustux/devcontainers/tree/main/src/argo
28+
"ghcr.io/audacioustux/devcontainers/argo:1": {
29+
"argocd": "2.8.13" // omit if empty
30+
}
31+
},
32+
"forwardPorts": [
33+
8080 // the "hard-coded" port for forwarded argo-cd"
34+
],
35+
// Use 'postCreateCommand' to run commands after the container is created.
36+
"postCreateCommand": "scripts/testacc_prepare_env.sh" // pre-create the kind cluster with argocd installed
37+
}

0 commit comments

Comments
 (0)