安装Harbor

找一个正式离线包下下来

https://github.com/vmware/harbor/releases

wget https://storage.googleapis.com/harbor-releases/release-1.5.0/harbor-offline-installer-v1.5.1.tgz

解压他

tar xvf harbor*installer*

配置他

cd harbor
vim harbor.cfg
# 搞一个域名是正道毕竟是公网要访问呢
hostname = harbor.trylife.cn
# 弄一个https也是很重要的
# 第一证书都有免费的
# 第二看起来也安全的样子
ui_url_protocol = https

# nginx CA证书放置的位置
ssl_cert = /data/cert/server.crt
ssl_cert_key = /data/cert/server.key
# 设置下邮件用来接收通知
email_server = smtp.mydomain.com
email_server_port = 25
email_username = sample_admin@mydomain.com
email_password = abc
email_from = admin <sample_admin@mydomain.com>
email_ssl = false
email_insecure = false
#UI界面默认密码 等会用到
harbor_admin_password = Harbor12345
# mysql密码还是要改下
# 如果要重新install改了密码一定要把数据库重置下
db_password = V5JUCUswPWXVgcCN
./install.sh
# 想要能扫描镜像 需要安装clair
# ./install.sh --with-Clair

完事了登陆吧

Comments

comments powered by Disqus