mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-24 21:47:04 +08:00
Refactor Gitpod configuration to improve quick spin up of automated dev environments (#21411)
This commit instructs Gitpod to run `docs` in watch mode in fresh development environments so any dev could start hacking in seconds. Also included some vscode extensions for Vue, Go, and Docker. Try it here: [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/yardenshoham/gitea/tree/gitpod) Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com>
This commit is contained in:
parent
a902af75f4
commit
b474730cf6
13
.gitpod.yml
13
.gitpod.yml
|
@ -1,5 +1,3 @@
|
||||||
image: gitpod/workspace-full:latest
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
init: |
|
init: |
|
||||||
|
@ -16,10 +14,13 @@ tasks:
|
||||||
command: |
|
command: |
|
||||||
gp sync-await setup
|
gp sync-await setup
|
||||||
mkdir -p custom/conf/
|
mkdir -p custom/conf/
|
||||||
echo -e "[server]\nROOT_URL=https://3000-$GITPOD_WORKSPACE_ID.${GITPOD_WORKSPACE_CLUSTER_HOST}/" > custom/conf/app.ini
|
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
|
||||||
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = /workspace/gitea/data/gitea.db" >> custom/conf/app.ini
|
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
|
||||||
export TAGS="sqlite sqlite_unlock_notify"
|
export TAGS="sqlite sqlite_unlock_notify"
|
||||||
make watch-backend
|
make watch-backend
|
||||||
|
- name: Run docs
|
||||||
|
before: sudo bash -c "$(grep 'https://github.com/gohugoio/hugo/releases/download' Makefile | tr -d '\')" # install hugo
|
||||||
|
command: cd docs && make clean update && hugo server -D -F --baseUrl $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
|
||||||
|
|
||||||
vscode:
|
vscode:
|
||||||
extensions:
|
extensions:
|
||||||
|
@ -28,7 +29,11 @@ vscode:
|
||||||
- golang.go
|
- golang.go
|
||||||
- stylelint.vscode-stylelint
|
- stylelint.vscode-stylelint
|
||||||
- DavidAnson.vscode-markdownlint
|
- DavidAnson.vscode-markdownlint
|
||||||
|
- johnsoncodehk.volar
|
||||||
|
- ms-azuretools.vscode-docker
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- name: Gitea
|
- name: Gitea
|
||||||
port: 3000
|
port: 3000
|
||||||
|
- name: Docs
|
||||||
|
port: 1313
|
||||||
|
|
|
@ -33,6 +33,12 @@
|
||||||
<a href="https://opensource.org/licenses/MIT" title="License: MIT">
|
<a href="https://opensource.org/licenses/MIT" title="License: MIT">
|
||||||
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://gitpod.io/#https://github.com/go-gitea/gitea">
|
||||||
|
<img
|
||||||
|
src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod"
|
||||||
|
alt="Contribute with Gitpod"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
<a href="https://crowdin.com/project/gitea" title="Crowdin">
|
<a href="https://crowdin.com/project/gitea" title="Crowdin">
|
||||||
<img src="https://badges.crowdin.net/gitea/localized.svg">
|
<img src="https://badges.crowdin.net/gitea/localized.svg">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -33,6 +33,12 @@
|
||||||
<a href="https://opensource.org/licenses/MIT" title="License: MIT">
|
<a href="https://opensource.org/licenses/MIT" title="License: MIT">
|
||||||
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
<img src="https://img.shields.io/badge/License-MIT-blue.svg">
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://gitpod.io/#https://github.com/go-gitea/gitea">
|
||||||
|
<img
|
||||||
|
src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod"
|
||||||
|
alt="Contribute with Gitpod"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
<a href="https://crowdin.com/project/gitea" title="Crowdin">
|
<a href="https://crowdin.com/project/gitea" title="Crowdin">
|
||||||
<img src="https://badges.crowdin.net/gitea/localized.svg">
|
<img src="https://badges.crowdin.net/gitea/localized.svg">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -19,6 +19,12 @@ menu:
|
||||||
|
|
||||||
{{< toc >}}
|
{{< toc >}}
|
||||||
|
|
||||||
|
## Quickstart
|
||||||
|
|
||||||
|
To get a quick working development environment you could use Gitpod.
|
||||||
|
|
||||||
|
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/go-gitea/gitea)
|
||||||
|
|
||||||
## Installing go
|
## Installing go
|
||||||
|
|
||||||
You should [install go](https://golang.org/doc/install) and set up your go
|
You should [install go](https://golang.org/doc/install) and set up your go
|
||||||
|
|
Loading…
Reference in New Issue
Block a user