Skip to main content

Get started with Artifact Registry

The Harness Artifact Registry module allows you to quickly and easily store your digital artifacts.

Getting started with Artifact Registry follows these steps:

Prerequisite

Depending on your package manager, e.g. Docker, Helm or Maven, you may need to use its associated dependencies like the Docker CLI.

Create a registry


Create an upstream proxy

An Upstream Proxy in an Artifact Registry is a configuration that enables the registry to retrieve artifacts from an external or remote registry. If a requested artifact is not available locally, the registry forwards the request to the upstream proxy to fetch it.

upstream proxy usage

Upstream proxies are commonly used to manage dependencies. During a build, if an open-source dependency is not already cached in the upstream proxy, it will be fetched from a public repository. This ensures access to necessary dependencies while optimizing retrieval speed and reducing redundant downloads.

To create one, follow these steps:


Connect the upstream proxy

After creating an upstream proxy, you need to set it in your artifact registry. To do so, follow these steps:

Use a registry

Next, use the registry we created. To do so, we will pull an artifact from the proxy, tag it, and add it to our registry.

pull an image

When you pull an artifact, the system first checks the local registry. If the artifact is not found, it automatically queries the upstream proxy. The proxy then attempts to retrieve the artifact from the designated external source, if available. This process ensures seamless access to artifacts, even if they are not initially stored in the local registry.

Now, you should see the artifact appear in your docker registry as well as the Artifacts tab in the left navigation panel. That concludes the quick start guide! You should now have enough to get started with Artifact Registry.

See Also

To learn more go to: