bmuschko / gradle-docker-plugin

Gradle plugin for managing Docker images and containers.
https://bmuschko.github.io/gradle-docker-plugin/current/user-guide/
Apache License 2.0
1.23k stars 361 forks source link

Support podman//buildah #1217

Closed mouradxmt closed 5 months ago

mouradxmt commented 5 months ago

Expected Behavior

Gradle docker plugin to support custom flags that can be passed to buildah

Current Behavior

The plugin is based on docker java and not the CLI which limits the use of buildah or pass flags

Context

I want to use podman and benefit from the remote cache mechanism that comes from buildah, however it is impossible to pass any flags that is not supported directly by docker java API

Steps to Reproduce (for bugs)

n/a

Your Environment

n/a

bmuschko commented 5 months ago

Supporting the buildkit or buildah CLI instead of using the Docker remote API would mean a complete rewrite of the plugin. You will want to look into other Gradle plugins that support your use case.