Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add Harbor as a compatible registry #400

Merged
merged 5 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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?
TerryHowe marked this conversation as resolved.
Show resolved Hide resolved
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
TerryHowe marked this conversation as resolved.
Show resolved Hide resolved
```

- Pushing Artifacts to Harbor registry

```
oras push --plain-http <registry-ip>:5000/hello-artifact:v2 \
artifact.txt:text/plain -d -v
TerryHowe marked this conversation as resolved.
Show resolved Hide resolved
```

- Pulling Artifacts from Harbor registry

```
oras pull --plain-http <registry-ip>:5000/hello-artifact:v2 -d -v
TerryHowe marked this conversation as resolved.
Show resolved Hide resolved
```
TerryHowe marked this conversation as resolved.
Show resolved Hide resolved

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