Skip to main content
Version: v5.3

rbd-repo指南

rbd-repo是基于artifactory-oss实现,rbd-repo源码参见goodrain/rbd-repo

更新自定义版本rbd-repo

docker pull docker.bintray.io/jfrog/artifactory-oss
docker tag docker.bintray.io/jfrog/artifactory-oss goodrain.me/rbd-repo
docker push goodrain.me/rbd-repo
node service stop rbd-repo

编辑/opt/rainbond/conf/base.yaml关于rbd-repo部分(先备份base.yaml文件)

- name: rbd-repo
endpoints:
- name: REPO_ENDPOINTS
protocol:
port: 8081
health:
name: rbd-repo
model: http
address: 127.0.0.1:8081/artifactory/
max_errors_num: 3
time_interval: 60
after:
- docker
type: simple
pre_start: docker rm rbd-repo
start: >-
docker run --name rbd-repo
--network host
-v /grdata/services/artifactory-<随机id>:/var/opt/jfrog/artifactory
-i goodrain.me/rbd-repo
stop: docker stop rbd-repo
restart_policy: always

目录权限配置

chown 1030:1030 /grdata/services/artifactory-<随机id> -R

添加远程仓库

Repository KeyTypeURL
aliyun-centralMavenhttp://maven.aliyun.com/nexus/content/groups/public/
centralMavenhttp://repo1.maven.org/maven2/
jcenterMavenhttp://jcenter.bintray.com
lang-oldGenerichttp://lang.d.goodrain.com
pkg_langGenerichttp://buildpack.rainbond.com
springMavenhttp://repo.spring.io/release/

添加Virtual仓库

Repository KeyTypeIncluded RepositoriesSelected Repositories
libs-releaseMaven4aliyun-central, central, jcenter, spring

启动rbd-repo

node service update

验证rbd-repo是否可用

curl lang.goodrain.me/maven.goodrain.me可以正常列出目录