Skip to content

Commit bc51e25

Browse files
techknowlogickyardenshohamGiteaBot
authored
Add devcontainer config for developing Gitea (#24781)
With the recent release of https://github.com/loft-sh/devpod making ephemeral dev environments (ala GitPod/Codespaces) much easier (aka, no pre-configured infra required). This allows an alternative to using GitPod for such development options. --------- Co-authored-by: Yarden Shoham <[email protected]> Co-authored-by: Giteabot <[email protected]>
1 parent 20c712e commit bc51e25

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.devcontainer/devcontainer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "Gitea DevContainer",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.20",
4+
"features": {
5+
// installs nodejs into container
6+
"ghcr.io/devcontainers/features/node:1": {
7+
"version":"20"
8+
}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"settings": {},
13+
// same extensions as Gitpod, should match /.gitpod.yml
14+
"extensions": [
15+
"editorconfig.editorconfig",
16+
"dbaeumer.vscode-eslint",
17+
"golang.go",
18+
"stylelint.vscode-stylelint",
19+
"DavidAnson.vscode-markdownlint",
20+
"Vue.volar",
21+
"ms-azuretools.vscode-docker",
22+
"zixuanchen.vitest-explorer",
23+
"alexcvzz.vscode-sqlite"
24+
]
25+
}
26+
},
27+
"portsAttributes": {
28+
"3000": {
29+
"label": "Gitea Web",
30+
"onAutoForward": "notify"
31+
}
32+
},
33+
"postCreateCommand": "make deps"
34+
}

0 commit comments

Comments
 (0)