forked from stolostron/thanos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
68 lines (63 loc) · 1.64 KB
/
devcontainer.json
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
// For more details, see https://aka.ms/devcontainer.json.
{
"name": "Codespaces for Thanos",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"workspaceFolder": "/go/src/github.com/thanos-io/thanos",
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/thanos-io/thanos,type=bind,consistency=cached",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}
},
"onCreateCommand": "make build",
"postAttachCommand": {
"Run quickstart": "bash scripts/quickstart.sh"
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
1313,
9090,
9091,
9092,
10904,
10914
],
"portsAttributes": {
"1313": {
"label": "Website"
},
"9090": {
"label": "Prometheus Instance 1"
},
"9091": {
"label": "Prometheus Instance 2"
},
"9092": {
"label": "Prometheus Instance 3"
},
"10904": {
"label": "Thanos Query 1"
},
"10914": {
"label": "Thanos Query 2"
}
},
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"davidanson.vscode-markdownlint",
"timonwong.shellcheck",
"docsmsft.docs-yaml",
"Grafana.vscode-jsonnet",
"codezombiech.gitignore"
]
}
}
}