wget --no-check-certificate https://github.com/goharbor/harbor/releases/download/v2.11.0/harbor-offline-installer-v2.11.0.tgz
tar -xvzf harbor-offline-installer-v2.11.0.tgz
cp harbor/harbor.yml.tmpl harbor/harbor.yml
vi harbor/harvor.yml
전략...
# 호스트 네임 수정
hostname: $HOSTNAME
# 사용할 포트 수정
http:
port: 80
# https 설정.
# 사용하지 않을 경우 여기부터
https:
port: 443
certificate: /$PATH/SERVER_CERT.crt
private_key: /$PATH/CA_CERT.key
# 여기까지 주석처리 또는 삭제
# Harbor 관리자 패스워드
harbor_admin_password: $HARBOR_ADMIN_PASSWORD
# Harbor 데이터베이스 패스워드
database:
password: $DATABASE_PASSWORD
max_idle_conns: 100
max_open_conns: 900
# docker image 등이 저장되는 디렉토리
data_volume: /$PATH/$TO/$SAVE/$IMAGES/$DIRECTORY
...중략...
# 프록시를 사용하는 경우
proxy:
http_proxy:
https_proxy:
no_proxy:
...후략
./install.sh
[Step 0]: checking if docker is installed ...
Note: docker version: 20.10.8
[Step 1]: checking docker-compose is installed ...
Note: docker-compose version: 1.29.2
[Step 2]: loading Harbor images ...
Loaded image: goharbor/redis-photon:v2.3.2
...중략...
Creating harbor-portal ... done
Creating harbor-core ... done
Creating harbor-jobservice ... done
Creating nginx ... done
✔----Harbor has been installed and started successfully.---
# helm-chart를 사용하는 경우
./install.sh --with-chartmuseum
vi /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
...중략...
# GRUB_CMDLINE_LINUX 값에 cgroup.memory=nokmem 을 추가한다..
# GRUB_CMDLINE_LINUX="crashkernel=auto spectre_v2=retpoline rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"
GRUB_CMDLINE_LINUX="crashkernel=auto spectre_v2=retpoline rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet cgroup.memory=nokmem"
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
cat/proc/cmdline
./prepare.sh
docker-compose down
docker-compose up -d