Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container-image-podman for Podman-related builds #27274

Closed
kereis opened this issue Aug 13, 2022 · 7 comments
Closed

container-image-podman for Podman-related builds #27274

kereis opened this issue Aug 13, 2022 · 7 comments
Labels
area/container-image env/windows Impacts Windows machines kind/extension-proposal Discuss and Propose new extensions

Comments

@kereis
Copy link

kereis commented Aug 13, 2022

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 kereis added the kind/extension-proposal Discuss and Propose new extensions label Aug 13, 2022
@quarkus-bot quarkus-bot bot added env/windows Impacts Windows machines triage/needs-triage labels Aug 13, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 1, 2022

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

@iocanel
Copy link
Contributor

iocanel commented Sep 19, 2022

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

@gastaldi
Copy link
Contributor

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

@kereis
Copy link
Author

kereis commented Sep 19, 2022

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?

@gastaldi
Copy link
Contributor

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

@geoand
Copy link
Contributor

geoand commented Sep 20, 2022

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

@Karm
Copy link
Member

Karm commented May 31, 2023

Podman detection works fine on Windows now.

@Karm Karm closed this as completed May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/container-image env/windows Impacts Windows machines kind/extension-proposal Discuss and Propose new extensions
Projects
None yet
Development

No branches or pull requests

5 participants