quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

container-image-podman for Podman-related builds

Open kereis opened this issue 2 years ago • 6 comments

Description

Normally, container-image-docker would be enough as Podman implements OCI standards pretty much the same as Docker. However, if you are working on Windows, you may run into limitation with setting DOCKER_HOST to Podman's npipe and command aliases, as container-image-docker's DockerProcessor calls docker command directly. Unfortunately, I haven't found a way to create Windows CMD/PowerShell aliases that apply for Java too.

I can imagine that this extension is pretty much built the same like container-image-docker, but using podman command instead. Maybe there can also be integrations for other opencontainers tools like buildah.

Configuration suggestion

Pretty much the same configuration properties used for container-image-*/container-image-docker extension.

Additional context

No response

kereis avatar Aug 13 '22 14:08 kereis

/cc @aloubyansky, @gastaldi, @gsmet, @maxandersen

quarkus-bot[bot] avatar Sep 01 '22 07:09 quarkus-bot[bot]

an extension that changes the behavior of container-image-docker to use podman sgtm

iocanel avatar Sep 19 '22 12:09 iocanel

Does it have to be a separate extension? Can't we support that in container-image-docker (in the same way we support Podman while building to native)?

gastaldi avatar Sep 19 '22 13:09 gastaldi

My guess is that it might be possible to support that in container-image-docker if the referenced binary in the extension can be configured or replaced.

By the way, I found a way out building images with podman using container-image-jib, as you can change the binary's/command's name there. But I don't know if that's the way to go?

kereis avatar Sep 19 '22 20:09 kereis

Maybe @geoand can answer that. If that's the recommended approach we should at least document in its guide for posterity

gastaldi avatar Sep 19 '22 20:09 gastaldi

Yes, you can do that with Jib. We don't have every feature in the docs, but all the configuration properties are documented

geoand avatar Sep 20 '22 03:09 geoand

Podman detection works fine on Windows now.

Karm avatar May 31 '23 10:05 Karm