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

chore(build.py): add cli flag to use podman instead of docker #379

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

bblancha
Copy link
Contributor

@bblancha bblancha commented Jan 30, 2024

podman's cli is arg-compatible with docker, at least for building images. We can allow users to specify use of podman.

podman's cli is arg-compatible with docker, at least for building
images. We can allow users to specify an alternate build engine.
@bblancha bblancha requested a review from rcorre January 30, 2024 20:53
build.py Outdated
@@ -6,6 +6,9 @@
import subprocess

is_travis = os.environ.get('TRAVIS') is not None

engine = os.environ.get('OCTOBOT_CONTAINER_BUILD_ENGINE', 'docker')
Copy link
Collaborator

Choose a reason for hiding this comment

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

imo, a cli arg that explicitly chooses podman instead feels better than an env variable turning into shell execution. thoughts?

@bblancha bblancha changed the title chore: add env variable to select build engine chore(build.py): add cli flag to use podman instead of docker Jan 30, 2024
@bblancha bblancha requested a review from matthauck January 30, 2024 21:15
@bblancha bblancha merged commit 4f18d1c into main Feb 6, 2024
1 check passed
@bblancha bblancha deleted the engine_swap_variable branch February 6, 2024 15:23
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.

3 participants