oci-registry

OCI registry Java library that allows serving OCI artifacts to pull operations

APACHE-2.0 License

Stars
3

OCI Registry Java Library

OCI registry Java library that allows serving OCI artifacts to pull operations.

How to Use

Add the Dependency

Add the following to your build.gradle(.kts):

repositories {
    mavenCentral()
}

dependencies {
    implementation("io.github.sgtsilvio:oci-registry:0.4.1")
}

Start a Reactor HTTP Server with the Handler

Add the following to your code (example in Kotlin):

HttpServer.create()
    .port(1234)
    .handle(OciRegistryHandler(DistributionRegistryStorage(Path.of("path/to/registry/data"))))
    .bindNow()