From cc6b6f3a18c476a277ec9d5f3f83aceedae5845d Mon Sep 17 00:00:00 2001 From: Feynman Zhou Date: Mon, 30 Sep 2024 11:50:55 +0800 Subject: [PATCH] add Harbor as a compatible registry Signed-off-by: Feynman Zhou --- .../version-1.2/compatible_oci_registries.mdx | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/versioned_docs/version-1.2/compatible_oci_registries.mdx b/versioned_docs/version-1.2/compatible_oci_registries.mdx index 94183b5b..636f947d 100644 --- a/versioned_docs/version-1.2/compatible_oci_registries.mdx +++ b/versioned_docs/version-1.2/compatible_oci_registries.mdx @@ -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 @@ -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 @@ -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 :5000 -u $HARBOR_USER --password-stdin + ``` + +- Pushing Artifacts to Harbor registry + + ``` + oras push --plain-http :5000/hello-artifact:v2 \ + artifact.txt:text/plain -d -v + ``` + +- Pulling Artifacts from Harbor registry + + ``` + oras pull --plain-http :5000/hello-artifact:v2 -d -v + ``` + [artifacts]: https://github.com/opencontainers/artifacts [distribution-spec]: https://github.com/opencontainers/distribution-spec/ \ No newline at end of file