aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-06-16 01:13:06 -0400
committerGitHub <noreply@github.com>2023-06-16 01:13:06 -0400
commitbc51e259d6442ec753846ba353395fa4fe7d0858 (patch)
tree0b167ea904cd304613e786f13fcddf58fd128c8b /.devcontainer
parent20c712ed7e718ed884801328b4f0d0db65f762aa (diff)
downloadgitea-bc51e259d6442ec753846ba353395fa4fe7d0858.tar.gz
gitea-bc51e259d6442ec753846ba353395fa4fe7d0858.zip
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 <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/devcontainer.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000000..6288e4d367
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,34 @@
+{
+ "name": "Gitea DevContainer",
+ "image": "mcr.microsoft.com/devcontainers/go:1.20",
+ "features": {
+ // installs nodejs into container
+ "ghcr.io/devcontainers/features/node:1": {
+ "version":"20"
+ }
+ },
+ "customizations": {
+ "vscode": {
+ "settings": {},
+ // same extensions as Gitpod, should match /.gitpod.yml
+ "extensions": [
+ "editorconfig.editorconfig",
+ "dbaeumer.vscode-eslint",
+ "golang.go",
+ "stylelint.vscode-stylelint",
+ "DavidAnson.vscode-markdownlint",
+ "Vue.volar",
+ "ms-azuretools.vscode-docker",
+ "zixuanchen.vitest-explorer",
+ "alexcvzz.vscode-sqlite"
+ ]
+ }
+ },
+ "portsAttributes": {
+ "3000": {
+ "label": "Gitea Web",
+ "onAutoForward": "notify"
+ }
+ },
+ "postCreateCommand": "make deps"
+}