Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Last active October 21, 2025 18:17
Show Gist options
  • Select an option

  • Save cmwylie19/e719898bd11e40a65f89ce1d0b19b180 to your computer and use it in GitHub Desktop.

Select an option

Save cmwylie19/e719898bd11e40a65f89ce1d0b19b180 to your computer and use it in GitHub Desktop.
demo pushing Pepr artifacts to an oras registry, crane, oras

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

Other Stuff

> crane ls registry.defenseunicorns.com/pepr-dev/private/controller
v0.51.6-nightly.1
v0.51.6-nightly.2
v0.51.6-nightly.3
┌─[cmwylie19@C2WY6FCQVX] - [~/pepr] - [2025-07-09 03:54:18]
└─[0] <git:(2387 9a513f3) > crane ls registry.defenseunicorns.com/pepr-dev/controller 
v0.51.6-nightly.1
v0.51.6-nightly.2
v0.51.6-nightly.3
┌─[cmwylie19@C2WY6FCQVX] - [~/pepr] - [2025-07-09 03:54:24]
└─[0] <git:(2387 9a513f3) > crane ls registry.defenseunicorns.com/pepr-dev/npm/pepr
0.51.6-nightly.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment