-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathdevcontainer.json
More file actions
92 lines (92 loc) · 3.49 KB
/
devcontainer.json
File metadata and controls
92 lines (92 loc) · 3.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "webstatus.dev DevContainer",
"build": {
"dockerfile": "Dockerfile"
},
"mounts": [
// https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#about-caching-workflow-dependencies
// These exist outside of the default /workspace folder. As a result, we need to mount them explicitly.
// Mount Go cache.
// Used by: https://github.com/actions/setup-go?tab=readme-ov-file#caching-dependency-files-and-build-outputs
"source=${localWorkspaceFolder}/.devcontainer/cache/go/go-build,target=/home/vscode/.cache/go-build,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.devcontainer/cache/go/pkg,target=/go/pkg,type=bind,consistency=consistent",
// Mount npm cache
"source=${localWorkspaceFolder}/.devcontainer/cache/node/.npm,target=/home/vscode/.npm,type=bind,consistency=consistent"
],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "1.25.1"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true
},
"ghcr.io/devcontainers/features/node:1": {
"version": "22.19.0"
},
"ghcr.io/devcontainers/features/terraform:1": {
// Get version from https://github.com/hashicorp/terraform/releases
"version": "1.13.2",
// We do not use terragrunt.
"terragrunt": "none",
// Get version from https://github.com/terraform-linters/tflint/releases
"tflint": "0.59.1"
},
"ghcr.io/lukewiwa/features/shellcheck:0": {
// Get version from https://github.com/koalaman/shellcheck/releases
"version": "v0.11.0"
},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
// We don't use helm
"helm": "none"
},
"ghcr.io/rio/features/skaffold:2": {},
// Needed for antlr4.
"ghcr.io/devcontainers/features/java:1": {
// Only pick LTS versions from
// https://www.oracle.com/java/technologies/java-se-support-roadmap.html
"version": "21"
}
},
"customizations": {
"vscode": {
"settings": {
"extensions.verifySignature": false // remove when bug is fixed: https://github.com/microsoft/vscode/issues/174632
},
"extensions": [
"googlecloudtools.cloudcode",
"hashicorp.terraform",
"42Crunch.vscode-openapi",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"runem.lit-plugin",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-playwright.playwright",
"figma.figma-vscode-extension",
"mike-lischke.vscode-antlr4",
"ms-vsliveshare.vsliveshare"
]
}
},
"forwardPorts": [
// gcloud CLI
8085
],
"runArgs": [
"--env-file",
".devcontainer/devcontainer.env",
"--init",
"--ipc=host"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/post_create.sh"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}