Skip to content

Commit

Permalink
add Harbor as a compatible registry
Browse files Browse the repository at this point in the history
Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>
  • Loading branch information
FeynmanZhou committed Sep 30, 2024
1 parent 1159654 commit cc6b6f3
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions versioned_docs/version-1.2/compatible_oci_registries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ sidebar_position: 70
This page contains a list of projects leveraging ORAS, as well as
registries that are known to support [OCI Artifacts][artifacts].

*Would like your registry and/or project listed here?
Please [submit an issue](https://github.com/oras-project/oras-www/issues/new?assignees=&labels=adopter&template=submit_adopter.yml&title=%5BAdd+adopter%5D%3A).
*Note that this list is not comprehensive yet. Would like your registry and/or project listed here?
Please [submit an issue](https://github.com/oras-project/oras-www/issues/new?assignees=&labels=adopter&template=submit_adopter.yml&title=%5BAdd+adopter%5D%3A) or raise a PR directly.
We're happy to promote all usage, as well as provide feedback.*

## Registries supporting OCI Artifacts
Expand All @@ -23,6 +23,7 @@ We're happy to promote all usage, as well as provide feedback.*
- [Zot Registry](#zot-registry)
- [Red Hat Quay](#red-hat-quay)
- [Artifactory](#artifactory)
- [Harbor](#harbor)

### CNCF Distribution

Expand Down Expand Up @@ -364,5 +365,26 @@ oras push artifactory.your-company.com/$ARTIFACTORY_OCI_REPOSITORY/myartifact:v1
oras pull artifactory.your-company.com/$ARTIFACTORY_OCI_REPOSITORY/myartifact:v1
```

### [Harbor](https://goharbor.io/)

- [Authenticating with Harbor](https://goharbor.io/docs/2.0.0/administration/configure-authentication/)

```
echo $ZR_PASSWORD | oras login <registry-ip>:5000 -u $HARBOR_USER --password-stdin
```

- Pushing Artifacts to Harbor registry

```
oras push --plain-http <registry-ip>:5000/hello-artifact:v2 \
artifact.txt:text/plain -d -v
```

- Pulling Artifacts from Harbor registry

```
oras pull --plain-http <registry-ip>:5000/hello-artifact:v2 -d -v
```

[artifacts]: https://github.com/opencontainers/artifacts
[distribution-spec]: https://github.com/opencontainers/distribution-spec/

0 comments on commit cc6b6f3

Please sign in to comment.