Skip to content

Commit 5f291f8

Browse files
authored
chore: Add devcontainer support (#1808)
Signed-off-by: André Silva <[email protected]>
1 parent 97c6ffa commit 5f291f8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "flagd dev container",
3+
// Image details: https://github.com/devcontainers/images/tree/main/src/go
4+
"image": "mcr.microsoft.com/devcontainers/go:1.24",
5+
// Features to add to the dev container. More info: https://containers.dev/features.
6+
"features": {
7+
"ghcr.io/devcontainers/features/github-cli:1": {},
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
9+
// The 'moby' option is not supported on Debian 'trixie' because 'moby-cli' and related system packages have been removed from that distribution.
10+
"moby": false
11+
}
12+
},
13+
// Configure tool-specific properties.
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"EditorConfig.EditorConfig",
18+
"GitHub.copilot",
19+
"GitHub.copilot-chat",
20+
"GitHub.vscode-github-actions",
21+
"GitHub.vscode-pull-request-github",
22+
"golang.go",
23+
"esbenp.prettier-vscode",
24+
"redhat.vscode-yaml",
25+
"cucumberopen.cucumber-official",
26+
"ms-vscode.makefile-tools"
27+
]
28+
}
29+
},
30+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
31+
"remoteUser": "vscode",
32+
"hostRequirements": {
33+
"memory": "8gb"
34+
},
35+
// Use 'postCreateCommand' to run commands after the container is created.
36+
"postCreateCommand": "git submodule update --init --recursive && make workspace-init"
37+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
38+
// "forwardPorts": [],
39+
}

0 commit comments

Comments
 (0)