harbor离线部署
前置工作:需要docker和docker-compose,可参考docker&docker-compose部署,
需要考虑版本兼容问题,之后补充~
1)harbor安装包下载地址
https://github.com/goharbor/harbor/releases
2)解压文件
tar -zxvf harbor-offline-installer-v1.10.17.tgz
3)复制harbor.yml.tmpl为harbor.yml,并修改harbor.yml
hostname: 1.1.1.1 # 你的主机IP
http: port: 803 # 端口,80端口可能会冲突这里后面安装会提现
# https相关的全部注释掉
# https:
# https port for harbor, default is 443
# port: 443
# The path of cert and key files for nginx
# certificate: /your/certificate/path
# private_key: /your/private/key/path
#初始化密码
harbor_admin_password: Harbor12345
4)安装harbor
./install.sh
5)访问测试
http://1.1.1.1:803, 账号默认是admin
5)停止harbor
docker-compose down
export NEXUS_HOME=/usr/local/nexus/nexus-3.13.0-01 export RUN_AS_USER=root