harbor倉庫,現(xiàn)在主要三大領(lǐng)域的存儲,一為docker鏡像巍耗,二為helm charts部署文件秋麸,三為OCI標準化的AI模型文件。
這篇算是前兩篇的升級版炬太。支持更多功能
http://www.reibang.com/p/9d249e0df269
http://www.reibang.com/p/4605307d04a0
一灸蟆,準備好離線安裝文件
harbor-offline-installer-v2.1.0.tgz
二,解壓
tar -zxvf harbor-offline-installer-v2.1.0.tgz
之后操作亲族,進入解壓的harbor目錄炒考,以管理員root帳號運行(因為涉及權(quán)限)
三,制作harbor.yml文件
cp harbor.yml.tmpl harbor.yml
然后霎迫,根據(jù)實際域名和端口進行修改斋枢。
hostname: harbor.demo.com.cn
# http related config
http:
# port for http, default is 80. If https enabled, this port will redirect to https port
port: 8086
四,執(zhí)行prepare腳本
./prepare
五知给,安裝并啟動瓤帚,支持helm charts管理和clair安全掃描
./install.sh --with-clair --with-chartmuseum
(需要提前安裝好docker-compose,我使用的是1.26.2版)
Creating network "harbor_harbor" with the default driver
Creating network "harbor_harbor-clair" with the default driver
Creating network "harbor_harbor-chartmuseum" with the default driver
Creating harbor-log ... done
Creating harbor-db ... done
Creating registryctl ... done
Creating registry ... done
Creating chartmuseum ... done
Creating harbor-portal ... done
Creating redis ... done
Creating clair ... done
Creating harbor-core ... done
Creating clair-adapter ... done
Creating nginx ... done
Creating harbor-jobservice ... done
六涩赢,登陸驗證
http://harbor.demo.com.cn:8086