Tosan / oras-maven-plugin

This is a Maven plugin for packaging and uploading artifacts to OCI registries (e.g. docker registry). It uses ORAS to push artifacts.
Apache License 2.0
6 stars 1 forks source link

Can this plugin load dependencies from OCI registry ? #1

Open geowalrus4gh opened 1 year ago

geowalrus4gh commented 1 year ago

We are currently using

  1. Maven repository for application dependent module jars as artifacts
  2. Harbor for application jar as container image(which assembles module jars from maven repo)

Idea is to

  1. Develop and push application module jars to OCI registry as artifact images.
  2. A web application jar which assembles dependent (as given in pom.xml file) jars from the OCI registry.
  3. Push web application jar to OCI registry as container image.

This idea is to avoid maven repo and use Harbor OCI as only repository. Can this idea implemented using this plugin ?

azurepilot commented 9 months ago

I would also be interested to use maven in this "OCI way" ... so any hint would be appreciated!

azurepilot commented 9 months ago

Meanwhile I played with this plug-in, found a bug and fixed it. (see my PR #3) However, I ask myself if this plugin works as intended by ORAS? The plug-in pushes a dir (or collection of files) "as is", i.e. without any manifest to the oci registry. The artifacts end up there with type "artifactType": "application/vnd.unknown.artifact.v1". Is that in the sense of OCI/ORAS?

Moreover, I still didn't find a way using this plugin to use / load jar artifacts from an oci registry? Please comment!