Skip to content

feat: added support for Podman as container engine#96

Open
Linsner wants to merge 2 commits into
keymanapp:mainfrom
Linsner:main
Open

feat: added support for Podman as container engine#96
Linsner wants to merge 2 commits into
keymanapp:mainfrom
Linsner:main

Conversation

@Linsner

@Linsner Linsner commented Jun 6, 2026

Copy link
Copy Markdown

No description provided.

@keymanapp-test-bot

keymanapp-test-bot Bot commented Jun 6, 2026

Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S30 milestone Jun 6, 2026
@keyman-server keyman-server modified the milestones: A19S30, A19S31 Jun 8, 2026

@mcdurdin mcdurdin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks clean and straightforward, just rename BUILDER_ENGINE to CONTAINER_ENGINE please for clarity

Comment thread _common/docker.inc.sh Outdated
Comment thread _common/docker.inc.sh
fi
if [[ $# -ge 4 ]]; then
TARGET="-f $4 ."
FILE="-f $4 "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may need additional tweaks later for api.keyman.com which has two Dockerfiles (one for db, one for site).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I do anything about it, or should I leave it as it is for now?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now we can leave as is.

Comment thread _common/docker.inc.sh
Comment on lines +65 to +68
elif [[ "${CONTAINER_ENGINE}" == "docker" ]]; then
FILE="-f Dockerfile "
elif [[ "${CONTAINER_ENGINE}" == "podman" ]]; then
FILE="-f Podmanfile "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these really needed? Won't podman use Podmanfile by default just as docker uses Dockerfile by default?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podman uses "Dockerfile" for default to be compatible. Usually you can run Podman with the same file as Docker uses but the Dockerfile must address specific requirements of Podman e.g. full path to images.

If you like you can test the build on Docker with the Podmanfile, it should work.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if we can get to the point where Podman and Docker can use the same file, that will definitely be better for maintenance. The differences seem pretty minimal at present, so can we get to a point where we can merge them?

@mcdurdin

mcdurdin commented Jun 8, 2026

Copy link
Copy Markdown
Member

Test-bot: skip

@keyman-server keyman-server modified the milestones: A19S31, A19S32 Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants