Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

add "Gitea" application #68

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions list.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
"location": "https://hub.docker.com/r/sameersbn/gitlab/",
"type": "app"
},
{
"description": "Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and Gitlab. Gitea is a fork of Gogs.",
"repository": "dockerhub",
"arch": "amd64",
"displayName": "Gitea",
"name": "gitea",
"version": "1.6",
"location": "https://hub.docker.com/r/gitea/gitea/",
"type": "app"
},
{
"description": "Redmine is a free and open source web-based project management system.",
"repository": "dockerhub",
Expand Down
20 changes: 20 additions & 0 deletions template/gitea/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "2"

networks:
gitea:
external: false

services:
server:
image: gitea/gitea:1.6
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
ports:
- "3000:3000"
- "222:22"
5 changes: 5 additions & 0 deletions template/gitea/wizard/description/cht.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 必備條件
如果用於團隊,您的 Docker Host 建議使用 2 核 CPU 和 1GB 記憶體。

## 描述
Gitea 是一個可自行託管的 Git 服務。你可以拿 GitHub、Bitbucket 或 Gitlab 來比較看看。初期是從 Gogs 發展而來,不過我們已經 Fork 並且命名為 Gitea。
5 changes: 5 additions & 0 deletions template/gitea/wizard/description/eng.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Prerequisites
Your docker host needs to have 2 CPU cores and 1GB RAM is typically sufficient for small teams/projects.

## Description
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and Gitlab. Gitea is a fork of Gogs.
6 changes: 6 additions & 0 deletions template/gitea/wizard/i18n/cht.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"GITEA_NAME": "Gitea",
"GITEA_CONFIGURE": "設定 Gitea",
"GITEA_WEB_HOST_PORT_DESC": "設定 Gitea 網頁伺服器的 Port,預設是 3000。",
"GITEA_SSH_HOST_PORT_DESC": "設定 Gitea SSH 伺服器的 Port,預設是 222。<div>HTTP Port 和 SSH Port 的設定不可相同。</div>"
}
6 changes: 6 additions & 0 deletions template/gitea/wizard/i18n/eng.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"GITEA_NAME": "Gitea",
"GITEA_CONFIGURE": "Configure Gitea",
"GITEA_WEB_HOST_PORT_DESC": "The port of the Gitea server. Defaults to 3000.",
"GITEA_SSH_HOST_PORT_DESC": "The ssh port number. Defaults to 222.<div>Please note that HTTP Port and SSH Port must be different.</div>"
}
40 changes: 40 additions & 0 deletions template/gitea/wizard/stage/install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"api_version": "v1",
"title": "{{GITEA_NAME}}",
"wizard": [
{
"title": "{{GITEA_CONFIGURE}}",
"schema": {
"http_port": {
"type": "integer",
"title": "HTTP Port",
"description": "{{GITEA_WEB_HOST_PORT_DESC}}",
"required": true,
"maximum": 65535
},
"ssh_port": {
"type": "integer",
"title": "SSH Port",
"description": "{{GITEA_SSH_HOST_PORT_DESC}}",
"required": true,
"maximum": 65535
}
},
"form": [
"*"
]
}
],
"binding": {
"type": "yaml",
"file": "docker-compose.yml",
"data": {
"http_port": [
"services.server.ports[0]"
],
"ssh_port": [
"services.server.ports[1]"
]
}
}
}