-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Kubernetes deployment structure picture * Introducing install Harbor in docker-compose and kubernetes deployment Signed-off-by: Lu Peng <penglu@hydsoft.com>
- Loading branch information
Showing
9 changed files
with
108 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# Install Harbor | ||
Harbor is an open source trusted cloud native registry project that stores, signs, and scans content. Harbor extends the open source Docker Distribution by adding the functionalities usually required by users such as security, identity and management. Having a registry closer to the build and run environment can improve the image transfer efficiency. | ||
|
||
Detailed article please refer to: https://github.com/goharbor/harbor/blob/master/docs/installation_guide.md | ||
|
||
### Downloading the installer | ||
|
||
The binary of the installer can be downloaded from the [release page](https://github.com/goharbor/harbor/releases). Use *tar* command to extract the package. | ||
|
||
Offline installer: | ||
|
||
```bash | ||
$ tar xvf harbor-offline-installer-<version>.tgz | ||
``` | ||
|
||
### Configuring Harbor | ||
|
||
Configuration parameters are located in the file harbor.yml. Change hostname to local ip, such as 192.168.0.1. | ||
|
||
```bash | ||
hostname: 192.168.10.1 | ||
``` | ||
|
||
### Change docker client: | ||
The default installation of Harbor uses HTTP - as such, you will need to add the option --insecure-registry to your client's Docker daemon and restart the Docker service. | ||
|
||
```bash | ||
$ sudo vi /etc/docker/daemon.json | ||
|
||
{ | ||
"insecure-registries" : [ "192.168.10.1" ] | ||
} | ||
``` | ||
|
||
Restart docker daemon: | ||
|
||
```bash | ||
$ sudo service docker restart | ||
``` | ||
|
||
### Install Harbor | ||
|
||
```bash | ||
$ sudo ./install.sh | ||
``` | ||
|
||
### Prepare FATE Image | ||
|
||
There are two ways to manage images: | ||
|
||
- Build image from FATE | ||
|
||
- Replicate from Docker Hub | ||
|
||
#### Build image from FATE | ||
|
||
Detailed build article please refer to: https://github.com/FederatedAI/FATE/blob/master/docker-build/README.md | ||
|
||
#### Replicate from Docker Hub | ||
|
||
Go to Projects and click the + New Project button. | ||
|
||
<div style="text-align:center", align=center> | ||
<img src="./images/harbor-project.png" /> | ||
</div> | ||
|
||
- Name the project federatedai. Check on the "Access Level" checkbox will make this project public. | ||
|
||
Go to Registries and click the + New Endpoint button. | ||
|
||
<div style="text-align:center", align=center> | ||
<img src="./images/harbor-endpoint.png" /> | ||
</div> | ||
|
||
- Choose provider to docker-hub. | ||
|
||
Go to Replications and click the + New Replication Rule. | ||
|
||
<div style="text-align:center", align=center> | ||
<img src="./images/harbor_replication.png" /> | ||
</div> | ||
|
||
Replication mode selection pull-based and docker hub endpoint. | ||
Three resource filters are supported: | ||
* **Name**: Filter resources according to the name. | ||
* **Tag**: Filter resources according to the tag. | ||
* **Resource**: Filter images according to the resource type. | ||
|
||
The terms supported in the pattern used by name filter and tag filter are as follows: | ||
* **\***: Matches any sequence of non-separator characters `/`. | ||
* **\*\***: Matches any sequence of characters, including path separators `/`. | ||
* **?**: Matches any single non-separator character `/`. | ||
* **{alt1,...}**: Matches a sequence of characters if one of the comma-separated alternatives matches. | ||
|
||
Select a replication rule and click REPLICATE, the resources which the rule is applied to will be replicated from the source registry to the destination immediately. Then the resources will appear in Projects. |