MetaHub Registry

MetaHub Logo

MetaHub is a registry that takes the context of a user into account to deliver the best suited container image.

Get a user

To try out MetaHub on your own please follow the instruction on the MetaHub website to participate in the beta program.

Reproduce the conformance test

The conformance test was run with the following variables. In order to run the test please ask for a user account with poweruser privileges (which allows to push images within the users namespace).

# Registry details
export OCI_ROOT_URL="https://metahub-registry.org"
export OCI_NAMESPACE="oci/conformance"
export OCI_USERNAME="oci"
export OCI_PASSWORD="********"

# Which workflows to run
export OCI_TEST_PULL=1
export OCI_TEST_PUSH=1
export OCI_TEST_CONTENT_DISCOVERY=1
export OCI_TEST_CONTENT_MANAGEMENT=1

# Extra settings
export OCI_HIDE_SKIPPED_WORKFLOWS=1
export OCI_DEBUG=0
export OCI_DELETE_MANIFEST_BEFORE_BLOBS=0

./conformance.test

Getting Started

To tip your toe into it let’s download a generic image for qnib/featuretest:

$ echo ${MH_PASS} |docker login metahub-registry.org --password-stdin  -u ${MH_USER}
Login Succeeded
$ docker run -ti --rm --pull=always metahub-registry.org/qnib/featuretest:latest
latest: Pulling from qnib/featuretest
88ecf269dec3: Pull complete
a2f2473b6a7e: Pull complete
Digest: sha256:fa4073c84baeda1fa38e12f7d0675476b435ebb5e70048ff7bc728aa3ab2dd9b
Status: Downloaded newer image for metahub-registry.org/qnib/featuretest:latest
>> This container is optimized for: amd64

Next we use the profile zen3 to pull down a new image optimized for the particular hardware architecutre.

$ echo ${MH_PASS} |docker login metahub-registry.org --password-stdin  -u ${MH_USER}/cpu#zen3
Login Succeeded
$ docker run -ti --rm --pull=always metahub-registry.org/qnib/featuretest:latest
latest: Pulling from qnib/featuretest
59bf1c3509f3: Pull complete
c1ac79912c87: Pull complete
Digest: sha256:14e67ca906c711fb5283b7241765a59827d55a8259af851cdeb3c822140fc10e
Status: Downloaded newer image for metahub-registry.org/qnib/featuretest:latest
>> This container is optimized for: arch:zen3