๐ก Harbor Private Registry: Replication โ Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for Harbor Private Registry: Replication.
Reference link
Issue
- Immediately after building, the contents can be confirmed to some extent as shown on the left.
- Images pulled from harbor are sha256 encrypted as shown on the right.
Manual deployment
Preparation
References and Guidelines (NOTE)
When distributing the app, delete the folder below. (all gitignore defined)
- /src/main/resources/public
- /src/main/resources/static
- /target
bash
# vi /etc/hosts ์ถ๊ฐ
100.0.0.184 harbor.Enterprise Cloud.cld
# mvn ์ค์น
which mvn
# ๊ฒฐ๊ณผ ์์๊ฒฝ์ฐ mvn ์ค์น
brew install mvn
# Docker desktop ์คํ ํ ์๋ ์คํฌ๋ฆฝํธ ์คํ.
docker pull harbor.Enterprise Cloud.cld/dream-markone/openjdk-font-cce:8-jre
# ๊ฒฐ๊ณผ ์์๊ฒฝ์ฐ ๋ก๊ทธ์ธ [๋งํฌ1] ์ฐธ์กฐ
docker login harbor.Enterprise Cloud.cld
# ์๋ ๊ฒฝ์ฐ ์๋์ DockerDesktop : Insecure ์ค์ ์ฐธ์กฐ
"insecure-registries": [
"harbor.Enterprise Cloud.cld"
],
Docker Desktop
IntelliJ
References and Guidelines (NOTE)
Maven build to .jar, Docker build to Image
bash
# build-deploy.sh ํ์ผ ์์ APP_PATH, APP_NAME
bash @git/build-deploy.sh build
# ๋ ๋ค ์ฑ๊ณตํ๋ค๋ฉด
mkdir {ํด๋}
cd {ํด๋}
bash ../build-deploy.sh save
# [๋งํฌ2] ์ฐธ์กฐ
scp -r ../{ํด๋} spjang@<PUBLIC_IP_REDACTED>:deploy
bash
#Implements
bash ~/workspaces/flowerduet-test/build-deploy.sh build
rm -r _tmp
mkdir _tmp
cd _tmp
bash ../build-deploy.sh save
scp -r ../_tmp spjang@<PUBLIC_IP_REDACTED>:deploy
Terminal
[Link 2] spjang@
bash
cd ~/deploy
# [๋งํฌ3] ์ฐธ์กฐ
scp -r ../_temp/ [email protected]:deploy
[Link 3] Connect to [email protected] (go-harbor)
bash
sudo -i
cd /home/ubuntu/deploy/{ํด๋}
docker load -i {์ด๋ฏธ์ง ํ์ผ}
# ๊ธฐ์กด ์ด๋ฏธ์ง:latest๋ ํ๊ทธ๊ฐ ์ฌ๋ผ์ง
docker push {์ด๋ฏธ์ง ๋ช
}:latest
# ํ๋ ์ฌ์์
kubectl rollout restart -n portal deployment {admin-api user-app user-api}




Leave a Reply