Ubuntu18.04 Server Installation Harbor

Harbor is an open source container mirrored locally deployed registry with access control, as well as the management interface. Maven's role is similar to Java in private warehouses Nexus, Jenkins provided with a mirror for the source when deploying vessels to K8s, speed the creation of , while its property within the network but also to ensure code security private projects to a large extent.

Ready to work

The target server is Ubuntu18.04 Server, has been installed and configured Docker. 

Harbor Project Address:  https://github.com/goharbor/harbor

Harbor Installation Instructions:  https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md

Download offline installation package:  https://github.com/vmware/harbor/releases

Installation Notes

Harbor K8s support the deployment, but generally it is recommended that a separate deployment.

Harbor installation, is actually a series of mounting the container to the local Docker, which contains Nginx, PostgreSQL, Redis and log services, while offline installation package containers already contains these mirrors, to avoid further download installation.

After extracting modify harbor.yml, only you need to modify the default hostname for the current host IP

wget https://github.com/goharbor/harbor/releases/download/v1.9.4/harbor-offline-installer-v1.9.4.tgz
tar zxvf harbor-offline-installer-v1.9.4.tgz 
cd harbor/
vi harbor.yml 

installation

sudo ./install.sh

After installation, you can use harbor.yml configured hostname and port to access the default user is admin / Harbor12345

Started after installation vessel

$ docker ps
CONTAINER ID        IMAGE                                                    COMMAND                  CREATED             STATUS                   PORTS                       NAMES
c045e8393514        goharbor/harbor-jobservice:v1.9.4                        "/harbor/harbor_jobs…"   7 minutes ago       Up 7 minutes (healthy)                               harbor-jobservice
9a3d65e5cdb0        goharbor/nginx-photon:v1.9.4                             "nginx -g 'daemon of…"   7 minutes ago       Up 7 minutes (healthy)   0.0.0.0:10080->8080/tcp     nginx
44fc38b22688        goharbor/harbor-core:v1.9.4                              "/harbor/harbor_core"    7 minutes ago       Up 7 minutes (healthy)                               harbor-core
4224ea0eb383        goharbor/harbor-registryctl:v1.9.4                       "/harbor/start.sh"       8 minutes ago       Up 7 minutes (healthy)                               registryctl
772f94b49468        goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.9.4   "/entrypoint.sh /etc…"   8 minutes ago       Up 7 minutes (healthy)   5000/tcp                    registry
795c283eebcd        goharbor/redis-photon:v1.9.4                             "redis-server /etc/r…"   8 minutes ago       Up 7 minutes (healthy)   6379/tcp                    redis
a7050eeaf864        goharbor/harbor-db:v1.9.4                                "/docker-entrypoint.…"   8 minutes ago       Up 8 minutes (healthy)   5432/tcp                    harbor-db
0159e6e4a9ec        goharbor/harbor-portal:v1.9.4                            "nginx -g 'daemon of…"   8 minutes ago       Up 7 minutes (healthy)   8080/tcp                    harbor-portal
2fcc5620820a        goharbor/harbor-log:v1.9.4                               "/bin/sh -c /usr/loc…"   8 minutes ago       Up 8 minutes (healthy)   127.0.0.1:1514->10514/tcp   harbor-log

 Harbor can use external PostgreSQL, external storage can be used, may be used cloud storage azure, gcs, s3, swift, oss, log can be pushed to an external syslog server.

Change setting

Harbor configuration changes need to stop the service, and then modify harbor.yml, and finally start Harbor Services

# Stop service 
sudo -v Docker-Compose Down 
# modify 
vi harbor.yml 
# use 
sudo ./prepare 
# start the service 
sudo docker-compose up -d

 

Guess you like

Origin www.cnblogs.com/milton/p/12128208.html