harbor 1.10.4 安装

1.harbor需要docker支持,

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install python-pip -y
pip install docker-compose
pip install --upgrade pip
 
 
# 如果pip install docker-compose安装报错,执行
报错信息:ERROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accuratel
 
# 执行
pip install docker-compose --ignore-installed requests

 2.下载源码,安装

cd /usr/local/src
wget https://github.com/goharbor/harbor/releases/download/v1.10.4/harbor-offline-installer-v1.10.4.tgz
tar -zxvf harbor-offline-installer-v1.10.4.tgz -C /usr/local


# 编辑文件
vim harbor.yml
hostname: 172.16.16.6         # 主机地址,

....
  port: 31007               # 端口

# 注释这些https
# https related config
#https:
#  # https port for harbor, default is 443
#  port: 443
#  # The path of cert and key files for nginx
#  certificate: /data/harbor/certificate/path
#  private_key: /data/harbor/private/key/path

# Uncomment external_url if you want to enable external proxy
# And when it enabled the hostname will no longer used
# external_url: https://reg.mydomain.com:8433

...
harbor_admin_password: Xuxxxx         # 密码

# Harbor DB configuration
database:
  # The password for the root user of Harbor DB. Change this before any production use.
  password: root123
  # The maximum number of connections in the idle connection pool. If it <=0, no idle connections are retained.
  max_idle_conns: 50
  # The maximum number of open connections to the database. If it <= 0, then there is no limit on the number of open connections.
  # Note: the default number of connections is 100 for postgres.
  max_open_conns: 100

# The default data volume
data_volume: /data/harbor                # 存储数据路径
...
location: /data/harbor/log                  # 日志文件

3.启动完成

 

 

 4.浏览器访问

 

posted @ 2020-07-17 14:28  sunmmi  阅读(291)  评论(0)    收藏  举报