Skip to content

Commit 58748e5

Browse files
authored
Merge pull request #15 from edivalentinitu/harbor
docs: include harbor docs
2 parents e49a172 + 1247312 commit 58748e5

4 files changed

Lines changed: 44 additions & 4 deletions

File tree

docs/services/assets/sso.png

32 KB
Loading
60 KB
Loading

docs/services/harbor/index.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Harbor
2+
3+
Harbor is an open source registry that secures artifacts with policies and role-based access control, ensures images are scanned and free from vulnerabilities.
4+
5+
This is a small guide for quick access to harbor docker image storage.
6+
7+
## harbor instance deployment
8+
TODO
9+
10+
## harbor account
11+
![sso-account](../assets/sso.png)
12+
To have a Harbor account created, you need to login via SSO, which in our case is configured through Keycloak-OIDC.
13+
14+
Once you login via SSO, you will have a project and role automatically assigned.
15+
16+
17+
## docker login and push
18+
Once your account is created and configured in a project, you will need to use it to authenticate via docker.
19+
20+
```
21+
docker login harbor.<your_domain>
22+
```
23+
24+
![modal](../assets/user_modal.png)
25+
After this you will be prompted to enter Username and password. In the **Harbor** browser page go to your user (top right) -> User profile. The password would be the **CLI Secret**. Copy that to clipboard.
26+
27+
Then:
28+
29+
```
30+
docker tag <your_image> harbor.<your_domain>/<your_project>/<image_name>:<tag>
31+
```
32+
33+
```
34+
docker push harbor.<your_domain>/<your_project>/<image_name>:<tag>
35+
```
36+
37+
Check in the Harbor website whether your image was pushed correctly to the desired project.
38+
39+
**Note**: Additional docs for docker authentication https://docs.docker.com/desktop/setup/sign-in/

mkdocs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ nav:
3737
- Home: 'index.md'
3838
# - Development:
3939
# - overview: 'development/index.md'
40-
- services: 'services/kubernetes/index.md'
41-
# - kubernetes: 'services/kubernetes/index.md'
42-
# - keycloak: 'services/keycloak/realm.md'
43-
# - Namespaces: 'services/kubernetes/ns.md'
40+
- services:
41+
#- kubernetes: 'services/kubernetes/index.md'
42+
#- keycloak: 'services/keycloak/realm.md'
43+
#- Namespaces: 'services/kubernetes/ns.md'
44+
- harbor: 'services/harbor/index.md'
4445
- Deployments:
4546
- Kubernetes: 'deployments/kubernetes-deploy.md'
4647
- UserPortal: 'deployments/userportal.md'

0 commit comments

Comments
 (0)