From 0b9f9f09257598f0a6c856432cbf90dce0d9ba9f Mon Sep 17 00:00:00 2001
From: okxlin <61420215+okxlin@users.noreply.github.com>
Date: Tue, 2 Apr 2024 16:19:15 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0onedev=E5=88=B0=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=20(#1155)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apps/onedev/10.3.3/data.yml | 18 ++++
apps/onedev/10.3.3/docker-compose.yml | 20 ++++
apps/onedev/README.md | 140 ++++++++++++++++++++++++++
apps/onedev/data.yml | 20 ++++
apps/onedev/logo.png | Bin 0 -> 5285 bytes
5 files changed, 198 insertions(+)
create mode 100644 apps/onedev/10.3.3/data.yml
create mode 100644 apps/onedev/10.3.3/docker-compose.yml
create mode 100644 apps/onedev/README.md
create mode 100644 apps/onedev/data.yml
create mode 100644 apps/onedev/logo.png
diff --git a/apps/onedev/10.3.3/data.yml b/apps/onedev/10.3.3/data.yml
new file mode 100644
index 00000000..5795e46d
--- /dev/null
+++ b/apps/onedev/10.3.3/data.yml
@@ -0,0 +1,18 @@
+additionalProperties:
+ formFields:
+ - default: 40085
+ edit: true
+ envKey: PANEL_APP_PORT_HTTP
+ labelEn: Port
+ labelZh: 端口
+ required: true
+ rule: paramPort
+ type: number
+ - default: 40086
+ edit: true
+ envKey: PANEL_APP_PORT_SSH
+ labelEn: SSH Port
+ labelZh: SSH 端口
+ required: true
+ rule: paramPort
+ type: number
diff --git a/apps/onedev/10.3.3/docker-compose.yml b/apps/onedev/10.3.3/docker-compose.yml
new file mode 100644
index 00000000..a5d20189
--- /dev/null
+++ b/apps/onedev/10.3.3/docker-compose.yml
@@ -0,0 +1,20 @@
+version: '3'
+services:
+ onedev:
+ container_name: ${CONTAINER_NAME}
+ restart: always
+ networks:
+ - 1panel-network
+ ports:
+ - "${PANEL_APP_PORT_HTTP}:6610"
+ - "${PANEL_APP_PORT_SSH}:6611"
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ - ./data:/opt/onedev
+ image: 1dev/server:10.3.3
+ labels:
+ createdBy: "Apps"
+
+networks:
+ 1panel-network:
+ external: true
diff --git a/apps/onedev/README.md b/apps/onedev/README.md
new file mode 100644
index 00000000..b74c10d1
--- /dev/null
+++ b/apps/onedev/README.md
@@ -0,0 +1,140 @@
+
+
+> **Note**
+> 1. Do not worry about security advisories above. They are fixed as soon as discovered and published to notify users
+> 2. We develop OneDev at
code.onedev.io for sake of dogfooding. All issues and pull requests should be submitted there
+
+
+
+
+
Self-hosted Git Server with Kanban and CI/CD
+
+
+
+
+
+
+## Out-of-box Symbol Search and Navigation
+
+Of course IDE is good at doing this, but often we need to search in old commits (investigate issues in release versions etc), and switching commits in IDE can be troublesome and slow.
+
+It works by analyzing source code with ANTLR, extracting symbols for storage incrementally, fast and space efficient. Now supports Java, JavaScript, C, C++, CSharp, Go, PHP, Python, CSS, SCSS, LESS and R. GitHub adds this feature several years ago, but seems that it only works for main branch, and GitLab has to configure CI job to generate and upload LSIF which is troublesome and can occupy considerable space if you do it for each commit.
+
+You can also jump to symbol definition in diff while reviewing commits or pull requests.
+
+![searchsymbol](https://github.com/theonedev/onedev/raw/main/doc/images/search-symbol.gif)
+
+![jumpsymbol](https://github.com/theonedev/onedev/raw/main/doc/images/symbol.gif)
+
+## Code Search with Regular Expression
+
+You may switch to any commit, and search code with regular expression. OneDev under the hood indexes the code with Lucene incrementally. At search time, literal tri-grams in the regular expression are extracted for a coarse search, followed by exact match in the result. This makes the regex search blazing fast, even for large repositories like Linux.
+
+![regex](https://github.com/theonedev/onedev/raw/main/doc/images/regex-search.gif)
+
+## Annotate Source/Diff with Static Analysis Result to Facilitate Code Review
+
+Of course this can be done by many third party applications at GitHub, however they display the result on their own applications, and this makes review activities such as adding comment over analysis result difficult. Not to mention that you need to pay for these services.
+
+![annotation](https://github.com/theonedev/onedev/raw/main/doc/images/annotation.png)
+
+## Customizable Issue State and Field, with Deep CI/CD Integration
+
+The simple open/close state of GitHub/GitLab issues does not work well for many workflows. Considering issues submitted by customers:
+
+1. If developer closes issue upon committing the code, customer will be notified and may ask for the release fixing the issue.
+2. If developer closes the issue at release time, QA might be confused at what issues to test as they all remain open at test time.
+
+With customizable issue states, we may address the issue with four states: open, committed, test ready and released:
+
+1. When code is committed, issue transits to committed state automatically
+2. When a test build is created and deployed, the issue transits to test ready state automatically. QA will be notified and can check issue detail to know which environment the test build is deployed into.
+3. When test passes, and a release build is created, customers submitting the issue will be notified and they can check issue detail to see which release contains the fix.
+
+![boards](https://github.com/theonedev/onedev/raw/main/doc/images/boards.png)
+
+![fixing-build](https://github.com/theonedev/onedev/raw/main/doc/images/fixing-build.png)
+
+## Service Desk to Create/Discuss Issues via Email
+
+Service desk allows your users to submit tickets via email without the need to have a OneDev account. These tickets can then be created in desired projects, and assigned to appropriate members in your team. All further discussions over the tickets can take place completely in email, with discussion contents posted to ticket as comments. User will also get notifications when there are any ticket activities, for instance, when a relevant release is created or deployed
+
+![service-desk.png](https://github.com/theonedev/onedev/raw/main/doc/images/service-desk.png)
+
+## A powerful and Intuitive Query Language
+
+Thanks to ANTLR again, OneDev ships sophisticated query languages for projects, commits, issues, builds, and pull requests, with intuitive auto-completions and hints. For instance, it enables our customers finding fixed issues between their running release and latest release, and enables us to find all commits submitted by someone touching specified modules, etc.
+
+Queries can be saved and subscribed, so that you won't miss anything interested.
+
+![query](https://github.com/theonedev/onedev/raw/main/doc/images/query.gif)
+
+## A Full-fledge CI/CD Engine without Writing Yaml
+
+OneDev ships with GUI to generate CI/CD Yaml. No need to google around for Yaml grammars. A one-liner docker command to start OneDev server and you have a local CI/CD runner automatically. Concerns about server capability to run massive jobs? Another one-liner to connect self-updating agent from any machine. Want auto-scale CI/CD farm? A helm one-liner to deploy OneDev into k8s cluster.
+
+Build pipeline, matrix jobs, typed parameters, parameter chaining, step templates, build promotions… too many neat features to elaborate…
+
+![job-def](https://github.com/theonedev/onedev/raw/main/doc/images/job-command.gif)
+
+![run-job](https://github.com/theonedev/onedev/raw/main/doc/images/build-option.gif)
+
+![pipeline.gif](https://github.com/theonedev/onedev/raw/main/doc/images/pipeline.gif)
+
+## Flexible Pull Request Review Policy and Reviewer Suggestion
+
+Specify pull request review policy based on author, branch, and changed files. OneDev can leverage git change history to suggest most appropriate reviewers for pull requests touching certain files.
+
+![review-policy](https://github.com/theonedev/onedev/raw/main/doc/images/review-policy.gif)
+
+## Lightweight Review without Pull Request
+
+Comment on any part of code or diff to start a lightweight review without opening pull request. Review comments live through code modification and even file rename to serve as documentation.
+
+Each discussion is threaded so that you can easily know discussions with new comments/updates.
+
+![file-comment](https://github.com/theonedev/onedev/raw/main/doc/images/file-comment.gif)
+
+![thread-comments](https://github.com/theonedev/onedev/raw/main/doc/images/threaded-comments.png)
+
+## Command Palette to Access Features Quickly
+
+Press cmd/ctrl-k to bring up command palette from anywhere. Search projects, files, issues, pull requests, builds, and various settings and jump to them without leaving your keyboard
+
+![command-palette.gif](https://github.com/theonedev/onedev/raw/main/doc/images/command-palette.gif)
+
+## Write Markdown Pleasantly With a Smart Editor
+
+When embedding an image in a markdown file in GitHub/GitLab, you need to upload the image in a separate page, and then figure out the relative path to reference that image. With OneDev, you simply upload the image to desired folder in same editor, and the link will be generated automatically.
+
+OneDev tracks your cursor in edit window and scrolls the preview window as necessary so that you can always preview what you are typing.
+
+![markdown](https://github.com/theonedev/onedev/raw/main/doc/images/markdown.gif)
+
+## SLOC Trend By Language
+
+OneDev inspects git history of main branch to calculate trend of source lines of code by language efficiently.
+
+![stats](https://github.com/theonedev/onedev/raw/main/doc/images/stats.png)
+
+## Project Hierarchy to Facilitate Setting Inheritance
+
+Organization is ideal for public service. However for self-hosted internal use, we feel that a hierarchical structure is more practical to organize projects. Child projects can inherit settings from parent project and can selectively override some of them if necessary. This reduces a lot of overhead to manage a lot of projects in the company.
+
+## Fast and Reliable with Moderate Resource Usage
+
+OneDev is carefully designed with performance in mind. With a 2 core 2GB box, you will get all features above for medium sized projects.
+It has been intensively used for more than 5 years, with battle-proven reliability. Fixing bugs is our highest priority, and there is
+normally few to no known bugs in the wild.
+
+----
+
+# Special Thanks
+
+![yourkit](https://www.yourkit.com/images/yklogo.png)
+
+[YourKit](https://yourkit.com) supports this project by providing a free open source license of their excellent Java profiler
\ No newline at end of file
diff --git a/apps/onedev/data.yml b/apps/onedev/data.yml
new file mode 100644
index 00000000..58003468
--- /dev/null
+++ b/apps/onedev/data.yml
@@ -0,0 +1,20 @@
+name: OneDev
+tags:
+ - CI/CD
+title: 具有 CI/CD 和 Kanban 的自托管 Git 服务器
+type: CI/CD
+description: 具有 CI/CD 和 Kanban 的自托管 Git 服务器
+additionalProperties:
+ key: onedev
+ name: OneDev
+ tags:
+ - CI/CD
+ shortDescZh: 具有 CI/CD 和 Kanban 的自托管 Git 服务器
+ shortDescEn: Self-hosted Git Server with CI/CD and Kanban
+ type: tool
+ crossVersionUpdate: true
+ limit: 0
+ recommend: 0
+ website: https://onedev.io
+ github: https://github.com/theonedev/onedev
+ document: https://docs.onedev.io
\ No newline at end of file
diff --git a/apps/onedev/logo.png b/apps/onedev/logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..e63903103a16e022ef1c8f2b7f4d4f589fffd0f3
GIT binary patch
literal 5285
zcmV;W6k6+vP)IRh7p-7cQ@YTtNgC6a|G81=I1B(i9y_v?iA>
z&9QW3bd9MwD|JlAm7~45ax7|^$Skp%GRr0;O~x4`lNmHqF%1MuZX$xb$eTc1;NJOT
z|8Dp4LKq8?@5_FqKN_9hz@a7EzhnmhBY?eu{=fjBU&*!u
zJAf^vKW_n611o@)rT@MOECJeb>_@{;?dYJfpc8*#5O5N30x%JnP_lj=+SD0aygQ
z0=x*!2iACKs}MAq9+K_BPv}9wnZW75DZnJcPt}$n!k!Pz1y+T1Cx5ExHVL{i2Lb1n
z>;pjGuZ|{Y`um_zd-*-p#bRfPf_`4(-Z6+
z;Pb$~Rqnwg;D43c`UxW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