SgtSilvio / oci-registry

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OCI Registry Java Library

Maven Central javadoc GitHub GitHub Workflow Status (with branch)

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.0")
}

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()

About

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

License:Apache License 2.0


Languages

Language:Kotlin 100.0%