Skip to content

Add Podman compatibility to vox:build task#228

Merged
nmburgan merged 1 commit intoOpenVoxProject:mainfrom
Sharpie:vox-build-podman-compat
Apr 5, 2026
Merged

Add Podman compatibility to vox:build task#228
nmburgan merged 1 commit intoOpenVoxProject:mainfrom
Sharpie:vox-build-podman-compat

Conversation

@Sharpie
Copy link
Copy Markdown
Contributor

@Sharpie Sharpie commented Apr 5, 2026

Prior to this commit, running the vox:build task via the podman-docker shim would fail as podman ls --format json prints an empty array, [], when no containers match --filter. This differs from docker ls behavior of printing nothing to STDOUT. This extra output resulted in the container_exists function returning a false positive, which caused the task to fail when trying to run podman stop on containers that didn't exist.

This commit changes the command to use --format='{{json .ID}}' as this produces the same behavior from both podman and docker: no STDOUT when nothing matches, and a quoted string containing the container ID when there is a match.

@Sharpie Sharpie force-pushed the vox-build-podman-compat branch from a0f6561 to 9a9cc01 Compare April 5, 2026 13:32
Prior to this commit, running the `vox:build` task via the
`podman-docker` shim would fail as `podman ls --format json` prints
an empty array, `[]`, when no containers match `--filter`. This differs
from `docker ls` behavior of printing nothing to STDOUT. This extra
output resulted in the `container_exists` function returning a false
positive, which caused the task to fail when trying to run `podman stop`
on containers that didn't exist.

This commit changes the command to use `--format '{{json .ID}}'` as
this produces the same behavior from both `podman` and `docker`:
no STDOUT when nothing matches, and a quoted string containing the
container ID when there is a match.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
@Sharpie Sharpie force-pushed the vox-build-podman-compat branch from 9a9cc01 to 927989f Compare April 5, 2026 13:34
@Sharpie
Copy link
Copy Markdown
Contributor Author

Sharpie commented Apr 5, 2026

This PR has been tested by running rake vox:build[8.12.1] with podman-docker installed, and then with docker-ce-cli installed.

@Sharpie
Copy link
Copy Markdown
Contributor Author

Sharpie commented Apr 5, 2026

Aha, this does have some overlap with #227 , that PR goes a bit further and removes the dependency on the podman-docker shim.

@nmburgan nmburgan merged commit bff9aac into OpenVoxProject:main Apr 5, 2026
19 checks passed
@Sharpie Sharpie deleted the vox-build-podman-compat branch April 5, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants