In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install and deploy Habor, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
Habor is an open source container image repository by VMWare. In fact, Habor has been extended to the enterprise level on Docker Registry, thus getting a wider range of applications. These new enterprise-level features include: management user interface, role-based access control, AD/LDAP integration and audit logs, which are sufficient to meet the basic enterprise needs.
Official address: https://vmware.github.io
Main functions of Harbor
Role-based access control (RBAC) in an enterprise, there are usually different development teams responsible for different projects, images are like code, each person has different roles and needs, so access control is needed and corresponding permissions are assigned according to roles. For example, developers need to build on the project, which uses read and write permissions (push/pull), testers only need read permissions (pull), operators generally manage image repositories, have the ability to assign permissions, and project managers have all permissions. * * Image replication * * can synchronize the images in the repository to the remote Harbor, similar to the MySQL master-slave synchronization feature. * * LDAP**Harbor supports LDAP authentication, which makes it easy to access existing LDAP. * * Image deletion and space reclamation * * Harbor supports deleting images in Web, reclaiming useless images, and freeing disk space. * * graphic page management * * users are very good at searching for images and project management. * * Audit * * records all operations of the warehouse. * * REST API** complete API for easy integration with external users.
Harbor component
Component function
Harbor-adminserver configuration Management Center
Harbor-db Mysql database
Harbor-jobservice is responsible for mirror replication.
Harbor-log record operation log
Harbor-ui Web Management Page and API
Nginx front-end agent, responsible for front-end page and image upload / download forwarding
Redis session
Registry mirrored storage
There are three ways to install Harbor: online installation: download Harbor-related images from Docker Hub, so the installation package is very small offline installation: the installation package contains related images for deployment, so the installation package is relatively large. OVA installer: when the user has a vCenter environment, use this installer to start Harbor after deploying OVA. We use offline installation, first download the offline installation package: https://github.com/goharbor/harbor/releases1. Add a yum source for docker You can use 2.yum install-y docker-ce & & systemctl enable docker & & docker start docker3.echo 1 > > / proc/sys/net/ipv4/ip_forward & & source / proc/sys/net/ip4/ip_forward4.curl-L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname-s`-`uname-m`-o / usr/local/bin/docker-compose & & chmod + x / usr/local/bin/docker-compose5 from other source addresses such as Ali or Tencent. Wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-online-installer-v1.9.0.tgz[root@git_harbor ~] # tar-zxvf harbor-offline-installer-v1.9.0.tgz-C / usr/local/ [root @ git_harbor ~] # mkdir / usr/local/harbor/ SSL [root @ git_harbor ssl] # openssl genrsa-out ca.key 2048Generating RSA private key 2048 bit long modulus. ... + + e is 65537 (0x10001) [root@git_harbor ssl] # openssl req-new-key ca.key-out ca.csrYou are about to be asked to enter information that will Be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name ora DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value If you enter'.', the field will be left blank.-Country Name (2 letter code) [XX]: State or Province Name (full name) []: Locality Name (eg, city) [Default City]: Organization Name (eg, company) [Default Company Ltd]: Organizational Unit Name (eg, section) []: Common Name (eg) Your name or your server's hostname) []: local.harbor.comEmail Address []: Please enter the following 'extra' attributesto be sent with your certificate requestA challenge password []: An optional company name []: [root@git_harbor ssl] # [root@git_harbor ssl] # openssl x509-req-days 365-in ca.csr-signkey ca.key-out ca.crtSignature oksubject=/C=XX/L=Default City/O=Default Company Ltd/CN=local.harbor.comGetting Private key [root @ git_harbor ssl] # vim.. / Harbor.ymlhostname: local.harbor.comhttps: certificate: / usr/local/harbor/ssl/ca.crt private_key: / usr/local/harbor/ssl/ ca.key [root @ git_harbor harbor] #. / prepare [root @ git_harbor harbor] #. / install.sh
6. Modify the hosts and native hosts of server
7. Visit Harbor
8. Log in to harbor
These are all the contents of the article "how to install and deploy Habor". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.