Files
devstar/README.md
mengning 8fdc37a647
All checks were successful
DevStar Studio CI/CD Pipeline / DevStarStudio-CICD-Pipeline (push) Successful in 53m22s
整理CI脚本、升级构建和安装脚本、DevStar相关的定制 (#21)
<!-- start tips -->
Please check the following:
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
3. For documentations contribution, please go to https://gitea.com/gitea/docs
4. Describe what your pull request does and which issue you're targeting (if any).
5. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
6. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
7. Delete all these tips before posting.
<!-- end tips -->

Co-authored-by: 孟宁 <mengning997@163.com>
Co-authored-by: panshuxiao <panshuxiao@mail.ustc.edu.cn>
Co-authored-by: jiaojm <13763605353@163.com>
Co-authored-by: 24焦俊鸣 <13763605353@163.com>
Reviewed-on: #21
Co-authored-by: mengning <mengning@mengning.com.cn>
Co-committed-by: mengning <mengning@mengning.com.cn>
2025-12-23 07:30:16 +00:00

5.6 KiB
Raw Blame History

DevStar

The Last Mile of Al for R&D

Purpose

DevStar Studio是为AI时代打造的新一代一站式智能研发平台面向人类开发者和AI开发者的融合团队专注于产品质量和团队效能为研发部门赋能提效。

As Gitea is written in Go, it works across all the platforms and architectures that are supported by Go, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. This project has been forked from Gogs since November of 2016, but a lot has changed.

Building

Build devstar-studio:latest From the root of the source tree, run::

git clone https://devstar.cn/devstar/devstar.git && cd devstar
make devstar # Build devstar-studio:latest

or Build a binary file named gitea From the root of the source tree, run:

TAGS="bindata" make build

or if SQLite support is required:

TAGS="bindata timetzdata sqlite sqlite_unlock_notify" make build

The build target is split into two sub-targets:

  • make backend which requires Go Stable, the required version is defined in go.mod.
  • make frontend which requires Node.js LTS or greater.

Internet connectivity is required to download the go and npm modules. When building from the official source tarballs which include pre-built frontend files, the frontend target will not be triggered, making it possible to build without Node.js.

More info: https://docs.gitea.com/installation/install-from-source

Using

Start from Container Image:

public/assets/install.sh start --image=devstar-studio:latest

# 查看日志
public/assets/install.sh logs
# 停止并删除devstar-studio容器
public/assets/install.sh clean
# 删除所有容器
sudo docker stop $(docker ps -aq) && sudo docker rm -f $(docker ps -aq)

or, After building, a binary file named gitea will be generated in the root of the source tree by default. To run it, use:

./gitea web

Note

devcontainer相关功能不能在localhost域名下正常工作调试环境请在custom/conf/app.ini中修改为IP地址

Contributing

Expected workflow is: Fork -> Patch -> Push -> Pull Request

如果您是在Windows环境下请在cmd命令行下先运行如下命令

wsl --install -d Ubuntu && wsl --setdefault Ubuntu

在Ubuntu下使用容器化开发环境

sudo apt install -y build-essential

在DevStar Git仓库创建分支

git clone https://devstar.cn/devstar/devstar.git && cd devstar
git checkout -b YOUR_BRANCH_NAME

# 镜像方式安装验证
make devstar # Build devstar-studio:latest
public/assets/install.sh start --image=devstar-studio:latest

# 镜像方式安装验证
make devstar # Build devstar-studio:latest
public/assets/install.sh start --image=devstar-studio:latest

# 提交代码
git add FILES
git commit -m "commit log"
git push

在DevStar Git仓库发起Pull Request合并代码后会自动触发CI流水线完成容器镜像的构建并上传到 mengning997/devstar-studio:latest 和 devstar.cn/devstar/devstar-studio:latest

public/assets/install.sh start

Note

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you have found a vulnerability in the project, please write privately to contact@mengning.com.cn. Thanks!
  3. 在Ubuntu下配置devstar开发环境
sudo apt install -y build-essential
# download and install go
sudo apt install -y golang-go
go version

# download and install Node.js
wget -c https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-x64.tar.xz
sudo tar -xf node-v22.11.0-linux-x64.tar.xz -C /usr/local/
echo 'export PATH=/usr/local/node-v22.11.0-linux-x64/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
node -v # should print `v22.11.0`
npm -v # should print `10.9.0`

git clone https://devstar.cn/devstar/devstar.git && cd devstar

TAGS="timetzdata sqlite sqlite_unlock_notify" make watch # for debuging
make test # testing
TAGS="bindata timetzdata sqlite sqlite_unlock_notify" make build # 生成可执行文件
./gitea

Official and Third-Party Projects

We maintain a list of Gitea-related projects at gitea/awesome-gitea, where you can discover more third-party projects, including SDKs, plugins, themes, and more.

License

This project is licensed under the AGPL-3.0 License.

  • Community Edition (Free):
    • Includes the standalone version of DevStar Studio.
    • Free to use and deploy.
    • Technical support is not included.
  • Enterprise Edition (Paid):
    • Requires a commercial license.
    • Unlocks Kubernetes-related features and other advanced functionalities.
    • Includes technical support.

See the LICENSE file for the full license text.