For anyone wanting to easily use and produce (mult...
# community-news
s
For anyone wanting to easily use and produce (multi-arch) OCI/container/Docker images, you might want to take a look at the Gradle OCI Plugin: https://github.com/SgtSilvio/gradle-oci It aims to bring Gradle’s dependency management model, its up-to-date checks and caching goodness together with container images. A more detailed description can be found in the readme. The development of this plugin has already been in the works for over a year, is already used for building production container images and is now also ready to be used by others.
🙌 3
s
Looks interesting, thanks! I've been looking at https://github.com/GoogleContainerTools/jib and https://github.com/bmuschko/gradle-docker-plugin in the past, but needed a mix of both... I'll also try to find the time to check out yours!
s
Feel free to reach out to me if you stumble upon something, as the repo is imho still missing some usage examples. Regarding the jib plugin: before starting this project, my idea was to contribute to or build upon the jib project, but its design did not fit with my design.
👍 2
s
What I like about jib though is the idea to not package JARs, but classes into the layers, so incremental builds are fast, as you only swap out the rebuilt class files instead of the whole JAR blob.
s
> idea to not package JARs The same can be done with this plugin, but it needs a bit more configuration. I already though about creating a
gradle-oci-java
plugin that also provides conventions on top of
gradle-oci
specific for java applications.
s
That would be great!