简介
装置形式
1、Harbor离线安装包,github地址为: https://github.com/goharbor/harbor/releases/tag/v2.0.6 可抉择适宜本人我的项目需要的版本,倡议抉择离线安装包。
2、将其下载好的安装包,解压后会发现。关上common.sh脚本文件,可查看以后harbor版本装置环境条件。及其所需的装置软件以及版本号
#!/bin/bash#docker version: 17.06.0+#docker-compose version: 1.18.0+#golang version: 1.12.0+
3、Harbor所需环境搭建好后,批改配置文件harbor.yml.tmpl,将其重命名为harbor.yml
须要批改配置文件的中央为,当初以Http拜访形式作为例子
# Harbor域名运行环境,不能通过localhost与127.0.0.1来作为Harbor来应用hostname: 210.210.210.20# http 拜访设置 http: # port for http, default is 80. If https enabled, this port will redirect to https port port: 8081# 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的账号密码# Remember Change the admin password from UI after launching Harbor.harbor_admin_password: Harbor12345
4、将其上述软件装置胜利后,在其终端服务器上执行命令
# Harbor装置环境预处理[root@localhost harbor]# ./prepare # 在就是装置Harbor利用[root@localhost harbor]# sh install.sh