# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Gerrit
spec:
    description: |
        Gerrit is a web-based code review tool built on Git. It provides an embedded H2 database for zero-configuration setup, inline code review with side-by-side diffs, fine-grained access controls, and SSH/HTTP Git hosting in a single container.
    coverImage: https://gerrit-review.googlesource.com/favicon.ico
    icon: https://gerrit-review.googlesource.com/favicon.ico
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Gerrit Code Review
    tags:
        - Developer Tools
        - Tool
    readme: |
        # Gerrit Code Review

        A web-based code review and Git repository management tool used by projects like Android, Chromium, and Eclipse. Gerrit ships with an embedded H2 database and Lucene search index, requiring no external dependencies.

        ## Getting Started

        1. **Open the web UI** at your domain — Gerrit displays a guided setup page on first launch
        2. **First user becomes admin** — the first account to sign in is automatically granted administrator privileges
        3. **Create a Git repository** — use the web UI or SSH to create new projects
        4. **Push code for review** — push to `refs/for/main` to create a code review change
        5. **Review and submit** — review code inline with side-by-side diffs, vote, and submit changes

        ## Key Features

        - Inline code review with side-by-side and unified diff views
        - Fine-grained access control with project-level and branch-level permissions
        - Embedded H2 database and Lucene index (zero external dependencies)
        - Git hosting over SSH (port 29418) and HTTP
        - Plugin system for extending functionality (CI integration, etc.)
        - REST API for automation and integration
        - Change-based workflow with submit rules and merge strategies
        - Email notifications for review updates

        ## Exposed Ports

        - **8080**: Web UI (HTTP)
        - **29418**: Git over SSH

        ## License

        Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    services:
        - name: gerrit
          icon: https://gerrit-review.googlesource.com/favicon.ico
          template: PREBUILT_V2
          spec:
            source:
                image: gerritcodereview/gerrit:3.13.5
            ports:
                - id: web
                  port: 8080
                  type: HTTP
                - id: ssh
                  port: 29418
                  type: TCP
            volumes:
                - id: git
                  dir: /var/gerrit/git
                - id: index
                  dir: /var/gerrit/index
                - id: cache
                  dir: /var/gerrit/cache
                - id: db
                  dir: /var/gerrit/db
                - id: etc
                  dir: /var/gerrit/etc
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
            portForwarding:
                enabled: true
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Gerrit es una herramienta web de revision de codigo basada en Git. Ofrece base de datos H2 integrada para despliegue sin configuracion, revision de codigo en linea, control de acceso granular y alojamiento Git SSH/HTTP.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Gerrit Code Review
        readme: |
            # Gerrit Code Review

            Herramienta web de revision de codigo y gestion de repositorios Git utilizada por Android, Chromium y Eclipse. Gerrit incluye base de datos H2 y motor de busqueda Lucene integrados, sin dependencias externas.

            ## Primeros pasos

            1. **Abrir la interfaz web** — Gerrit muestra una pagina de configuracion guiada en el primer inicio
            2. **El primer usuario es administrador** — la primera cuenta obtiene privilegios de administrador
            3. **Crear repositorio Git** — usar la interfaz web o SSH
            4. **Enviar codigo para revision** — push a `refs/for/main`
            5. **Revisar y enviar** — revision en linea con diffs lado a lado

            ## Caracteristicas

            - Revision de codigo en linea
            - Control de acceso granular
            - Base de datos H2 y Lucene integrados
            - Alojamiento Git SSH/HTTP
            - Sistema de plugins
            - API REST
            - Notificaciones por email

            ## Licencia

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    id-ID:
        description: |
            Gerrit adalah alat review kode berbasis web yang dibangun di atas Git. Menyediakan database H2 bawaan untuk deploy tanpa konfigurasi, review kode inline, kontrol akses granular, dan hosting Git SSH/HTTP.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Gerrit Code Review
        readme: |
            # Gerrit Code Review

            Alat review kode berbasis web dan manajemen repositori Git yang digunakan oleh Android, Chromium, dan Eclipse. Gerrit dilengkapi database H2 dan indeks pencarian Lucene bawaan tanpa dependensi eksternal.

            ## Memulai

            1. **Buka antarmuka web** — Gerrit menampilkan halaman setup pada peluncuran pertama
            2. **Pengguna pertama menjadi admin** — akun pertama otomatis mendapat hak administrator
            3. **Buat repositori Git** — gunakan antarmuka web atau SSH
            4. **Push kode untuk review** — push ke `refs/for/main`
            5. **Review dan submit** — review kode inline dengan diff berdampingan

            ## Fitur

            - Review kode inline
            - Kontrol akses granular
            - Database H2 dan Lucene bawaan
            - Hosting Git SSH/HTTP
            - Sistem plugin
            - REST API
            - Notifikasi email

            ## Lisensi

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    ja-JP:
        description: |
            Gerrit は Git ベースの Web コードレビューツールです。組み込み H2 データベースによるゼロ設定デプロイ、インラインコードレビュー、きめ細かいアクセス制御、SSH/HTTP Git ホスティングを提供。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Gerrit Code Review にアクセスするためのドメイン
        readme: |
            # Gerrit Code Review

            Android、Chromium、Eclipse などのプロジェクトで使用される Web コードレビュー・Git リポジトリ管理ツール。組み込み H2 データベースと Lucene 検索で外部依存なし。

            ## はじめに

            1. **Web UI を開く** — 初回起動時にガイド付きセットアップを表示
            2. **最初のユーザーが管理者** — 最初にログインしたアカウントが管理者に
            3. **Git リポジトリを作成** — Web UI または SSH で新プロジェクトを作成
            4. **レビュー用にプッシュ** — `refs/for/main` にプッシュしてレビューを作成
            5. **レビューして送信** — サイドバイサイドでコードをレビュー、投票、送信

            ## 主な機能

            - インラインコードレビュー（並列・統合差分表示）
            - きめ細かいアクセス制御
            - 組み込み H2 データベースと Lucene（外部依存なし）
            - SSH/HTTP Git ホスティング
            - プラグインシステム
            - REST API
            - メール通知

            ## ライセンス

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    ko-KR:
        description: |
            Gerrit은 Git 기반 웹 코드 리뷰 도구입니다. 내장 H2 데이터베이스로 설정 없이 배포, 인라인 코드 리뷰, 세밀한 접근 제어, SSH/HTTP Git 호스팅을 제공합니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Gerrit Code Review에 접속할 도메인
        readme: |
            # Gerrit Code Review

            Android, Chromium, Eclipse 등의 프로젝트에서 사용하는 웹 코드 리뷰 및 Git 저장소 관리 도구. 내장 H2 데이터베이스와 Lucene 검색으로 외부 의존성 없음.

            ## 시작하기

            1. **웹 UI 열기** — 첫 실행 시 가이드 설정 페이지 표시
            2. **첫 번째 사용자가 관리자** — 첫 로그인 계정이 자동으로 관리자 권한 획득
            3. **Git 저장소 생성** — 웹 UI 또는 SSH로 새 프로젝트 생성
            4. **리뷰용 푸시** — `refs/for/main`에 푸시하여 리뷰 생성
            5. **리뷰 및 제출** — 나란히 비교로 코드 리뷰, 투표, 제출

            ## 주요 기능

            - 인라인 코드 리뷰 (병렬/통합 diff)
            - 세밀한 접근 제어
            - 내장 H2 데이터베이스와 Lucene (외부 의존성 없음)
            - SSH/HTTP Git 호스팅
            - 플러그인 시스템
            - REST API
            - 이메일 알림

            ## 라이선스

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    th-TH:
        description: |
            Gerrit คือเครื่องมือรีวิวโค้ดบนเว็บที่สร้างบน Git มีฐานข้อมูล H2 ในตัวสำหรับการติดตั้งแบบไม่ต้องตั้งค่า รีวิวโค้ดแบบอินไลน์ การควบคุมสิทธิ์อย่างละเอียด และโฮสติ้ง Git ผ่าน SSH/HTTP
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Gerrit Code Review
        readme: |
            # Gerrit Code Review

            เครื่องมือรีวิวโค้ดบนเว็บและจัดการ Git repository ที่ใช้โดย Android, Chromium และ Eclipse มีฐานข้อมูล H2 และ Lucene ในตัว ไม่ต้องพึ่งพาบริการภายนอก

            ## เริ่มต้นใช้งาน

            1. **เปิด Web UI** — Gerrit แสดงหน้าตั้งค่าเมื่อเปิดครั้งแรก
            2. **ผู้ใช้คนแรกเป็นแอดมิน** — บัญชีแรกได้รับสิทธิ์ผู้ดูแลระบบ
            3. **สร้าง Git repository** — ใช้ Web UI หรือ SSH
            4. **Push โค้ดเพื่อรีวิว** — push ไปที่ `refs/for/main`
            5. **รีวิวและส่ง** — รีวิวโค้ดแบบอินไลน์

            ## ฟีเจอร์หลัก

            - รีวิวโค้ดแบบอินไลน์
            - การควบคุมสิทธิ์อย่างละเอียด
            - ฐานข้อมูล H2 และ Lucene ในตัว
            - โฮสติ้ง Git SSH/HTTP
            - ระบบปลั๊กอิน
            - REST API
            - แจ้งเตือนทางอีเมล

            ## สัญญาอนุญาต

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    zh-CN:
        description: |
            Gerrit 是一款基于 Git 的网页代码审查工具。提供嵌入式 H2 数据库零配置部署、行内代码审查、精细访问控制，以及 SSH/HTTP Git 托管。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Gerrit Code Review 的域名
        readme: |
            # Gerrit Code Review

            被 Android、Chromium 和 Eclipse 等项目使用的网页代码审查与 Git 仓库管理工具。Gerrit 内置 H2 数据库和 Lucene 搜索索引，无需外部依赖。

            ## 开始使用

            1. **打开网页界面** — 首次启动时 Gerrit 会显示引导设置页面
            2. **第一个用户成为管理员** — 首个登录账号自动获得管理员权限
            3. **创建 Git 仓库** — 使用网页界面或 SSH 创建新项目
            4. **推送代码审查** — 推送至 `refs/for/main` 创建审查变更
            5. **审查并提交** — 使用并排比较审查代码、投票并提交

            ## 主要功能

            - 行内代码审查，支持并排和统一差异视图
            - 精细访问控制（项目级和分支级权限）
            - 嵌入式 H2 数据库和 Lucene 索引（零外部依赖）
            - SSH 和 HTTP Git 托管
            - 插件系统
            - REST API
            - 邮件通知

            ## 许可证

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
    zh-TW:
        description: |
            Gerrit 是一款基於 Git 的網頁程式碼審查工具。提供嵌入式 H2 資料庫零設定部署、行內程式碼審查、精細存取控制，以及 SSH/HTTP Git 託管。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Gerrit Code Review 的網域
        readme: |
            # Gerrit Code Review

            被 Android、Chromium 和 Eclipse 等專案使用的網頁程式碼審查與 Git 儲存庫管理工具。Gerrit 內建 H2 資料庫和 Lucene 搜尋索引，無需外部依賴。

            ## 開始使用

            1. **開啟網頁介面** — 首次啟動時 Gerrit 會顯示導覽設定頁面
            2. **第一個使用者成為管理員** — 首個登入帳號自動獲得管理員權限
            3. **建立 Git 儲存庫** — 使用網頁介面或 SSH 建立新專案
            4. **推送程式碼審查** — 推送至 `refs/for/main` 建立審查變更
            5. **審查並提交** — 使用並排比較審查程式碼、投票並提交

            ## 主要功能

            - 行內程式碼審查，支援並排和統一差異檢視
            - 精細存取控制（專案層級和分支層級權限）
            - 嵌入式 H2 資料庫和 Lucene 索引（零外部依賴）
            - SSH 和 HTTP Git 託管
            - 外掛系統
            - REST API
            - 電子郵件通知

            ## 授權

            Apache-2.0 — [Gerrit Code Review](https://www.gerritcodereview.com/)
