Repository navigation
Add the Podman backend. - #5
Merged
Merged
Conversation
Add another backend to run containers through Podman [1]. This is another backend that is very much similar to the Docker backend, in that the command to start the container process (`podman run`) is identical to the command one would use with Docker. Therefore, as for the Apple Container backend, this backend is reusing the logic from the Docker backend to build the command line. Still, even though calling the `odk_backend_docker_build_command()` function avoids duplicating most of the code, there is still a sizeable amount of almost "boilerplate" code that is duplicated between the Docker, Apple Container, and Podman backends. This is still fine for now, but one or two more backends like that and we should seriously consider refactoring the whole backend system to account for the fact that several backends are in fact almost identical. [1] https://podman.io/
It seems that Podman does not support binding a socket from the host into the container. I have no time to investigate that for now, so we'll just skip SSH socket forwarding on Podman for the time being. (That is not a big loss. In fact, I am not sure anyone except me has ever used the SSH socket forwarding feature of odkrun.)
gouttegd
force-pushed
the
add-podman-backend
branch
from
October 8, 2026 09:59
9d110f4 to
e468c75
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add another backend to run containers through Podman [1].
This is another backend that is very much similar to the Docker backend, in that the command to start the container process (
podman run) is identical to the command one would use with Docker. Therefore, as for the Apple Container backend, this backend is reusing the logic from the Docker backend to build the command line.Still, even though calling the
odk_backend_docker_build_command()function avoids duplicating most of the code, there is still a sizeable amount of almost "boilerplate" code that is duplicated between the Docker, Apple Container, and Podman backends. This is still fine for now, but one or two more backends like that and we should seriously consider refactoring the whole backend system to account for the fact that several backends are in fact almost identical.[1] https://podman.io/