Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Created April 16, 2025 14:59
Show Gist options
  • Save cmwylie19/e719898bd11e40a65f89ce1d0b19b180 to your computer and use it in GitHub Desktop.
Save cmwylie19/e719898bd11e40a65f89ce1d0b19b180 to your computer and use it in GitHub Desktop.
demo pushing Pepr artifacts to an oras registry

Run a local zot registry

docker run --platform linux/amd64 -d -p 3333:5000 --name oras-quickstart ghcr.io/project-zot/zot-linux-amd64:latest

Build Pepr image and library

npm run build:image

Push to local registry

oras push --plain-http localhost:3333/pepr-library:v0.38.1 --artifact-type application/vnd.pepr.module.layer.v1 pepr-0.0.0-development.tgz
docker tag pepr:dev localhost:3333/pepr:v0.38.1
docker push localhost:3333/pepr:v0.38.1

Pull it from the registry (stores it in your directory)

oras pull localhost:3333/pepr-library:v0.38.1 
docker pull localhost:3333/pepr:v0.38.1

View it in the registry

oras discover localhost:3333/pepr-library:v0.38.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment