镜像仓库harbor v2.5.0安装并支持helm charts

一.系统环境

操作系统:CentOS Linux release 7.9.2009 (Core)

docker版本:docker-ce-20.10.9-3.el7.x86_64

docker-compose版本:Docker Compose version v2.4.1
harbor版本:harbor-offline-installer-v2.5.0.tgz

二.安装docker

#安装依赖
yum install -y yum-utils device-mapper-persistent-data lvm2

#导入yum镜像源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

#查看docker版本
yum list docker-ce --showduplicates | sort -r

#安装对应版本的docker软件
yum install -y docker-ce-20.10.9

三.安装docker-compose

#下载docker-compose
wget https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-linux-x86_64

#复制文件,并赋权
cp docker-compose-linux-x86_64 /usr/local/bin/

chmod +x /usr/local/bin/docker-compose

四.安装harbor

#下载软件
wget https://github.com/goharbor/harbor/releases/download/v2.5.0/harbor-offline-installer-v2.5.0.tgz
#解压缩
 tar zxvf harbor-offline-installer-v2.5.0.tgz
#编辑harbor.yml文件

hostname: harbor.baiwangjs.com

# http related config
http:
  # port for http, default is 80. If https enabled, this port will redirect to https port
  port: 8080

https:
  # https port for harbor, default is 443
  port: 8443
  # The path of cert and key files for nginx
  certificate: /data-cert/htjs.crt
  private_key: /data-cert/htjs.key


#创建证书的目录,并复制对应的证书,我的证书是使用acme生成的
mkdir /data-cert
导入提前生成的证书

#执行prepare脚本
./prepare
#执行安装,with-notary认证,--with-trivy扫描,--with-chartmuseum支持helmcharts,--with-clair已经弃用
./install.sh --with-notary --with-trivy --with-chartmuseum

五.登录验证

https://harbor-helmchart.baiwangjs.com:8443

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

忍冬行者

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值