# onedev-docker **Repository Path**: tekintian/onedev-docker ## Basic Information - **Project Name**: onedev-docker - **Description**: 带有CI/CD的轻量级gitlab替代 git服务端 docker容器, onedev git server with CI/CD server docker images - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-27 - **Last Updated**: 2023-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # onedev git ci/cd server docker images 镜像基础环境: ubuntu 22.04 镜像默认包含了docker,curl, git, git-lfs openjdk-11-jre, iproute2 等运行环境, 默认使用阿里云镜像加速 如果需要换回ubuntu 默认源 ~~~sh # 还原默认镜像 sed -i 's/mirrors.aliyun.com/archive.ubuntu.com/g' /etc/apt/sources.list # 阿里云镜像加速 sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list ~~~ ## build ~~~sh # 服务端构建 ./build.sh -t server -v 9.3.0 # agent构建 ./build.sh -t agent -v 9.3.0 ~~~ ## quick start tekintian/onedev-server:9.3.0 完整服务端镜像 tekintian/onedev-agent:9.3.0 仅agent镜像 ~~~sh docker run --name onedev-server -itd \ -p 6610:6610 -p 6611:6611 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $PWD/demo/data:/opt/onedev \ tekintian/onedev-server:9.3.0 # 前台测试运行 docker run --rm \ -p 6610:6610 -p 6611:6611 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $PWD/demo/data:/opt/onedev \ tekintian/onedev-server:9.3.0 ~~~ 默认采用的是内置数据库 如果需要修改为其他数据库(mysql, psql, sqlserver) 在 conf/hibernate.properties 文件中修改相应的配置即可 服务端口配置文件 conf/server.properties