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

feat: support podman #358

Merged
merged 1 commit into from
Mar 6, 2024
Merged

feat: support podman #358

merged 1 commit into from
Mar 6, 2024

Conversation

sudomateo
Copy link
Contributor

This patch adds support for running service using Podman. There are a few notable changes that were required to enable Podman support, described below.

Podman keeps HostIP empty instead of using 0.0.0.0. This behavior required an update to extractIPPort. More information in containers/podman#17780.

Podman prefers to use fully-qualified container images (i.e., example.com/foo/bar:latest) but will perform short-name aliasing for unqualified container images. When an unqualified image such as foo/bar:latest is loaded into a kind cluster it will be stored as localhost/foo/bar:latest.

Using backticks for command substitution isn't POSIX compatible. Switched the backticks to $() instead to support alternative shells (e.g., /bin/fish).

This patch adds support for running service using Podman. There are a few notable changes that were required to enable
Podman support, described below.

Podman keeps `HostIP` empty instead of using `0.0.0.0`. This behavior required an update to `extractIPPort`. More
information in containers/podman#17780.

Podman prefers to use fully-qualified container images (i.e., `example.com/foo/bar:latest`) but will perform
[short-name aliasing](https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md#short-name-aliasing)
for unqualified container images. When an unqualified image such as `foo/bar:latest` is loaded into a kind cluster it
will be stored as `localhost/foo/bar:latest`.

Using backticks for command substitution isn't POSIX compatible. Switched the backticks to `$()` instead to support
alternative shells (e.g., `/bin/fish`).
@ardan-bkennedy
Copy link
Contributor

Thank you for this. I will review in the morning. If I have questions I'll reach out.

@ardan-bkennedy ardan-bkennedy merged commit 40f5154 into ardanlabs:master Mar 6, 2024
1 check passed
@sudomateo sudomateo deleted the sudomateo/podman branch March 6, 2024 14:32
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