zbm-builder.sh: Use -d for custom container CLI#808
Conversation
ahesford
left a comment
There was a problem hiding this comment.
I'm vacillating between wanting to see this change respect $PODMAN in the environment and not really caring. We could guard the current default assignment with if [ -z "${PODMAN}" ] and move it right after the configuration file is sourced (and right before the second option parsing) and get this for free. On the other hand, one could just do
zbm-builder.sh -d "${PODMAN}"
and be done.
If you are inclined to make this change, I'll accept it; if not, I won't bother adding it independently.
I tried this while implementing this feature, and it didn't work the way I wanted. To me, this is the ideal order of precedence for controlling this setting:
However, to allow Given that, do you still think it's worth adding the extra logic required for supporting |
|
I'm sorry, this slipped past me. I agree that it isn't worthwhile to delve further into supporting the environment variable. The changes are fine as they are now; please squash all the commits down (you can leave out the explanatory text in favor of a one-liner commit message). |
79c7e6e to
f62b247
Compare
Done 👍 f62b247 |
This PR changes the
-dargument ofzbm-builder.shto accept an executable argument, which will be used in place ofpodmanordocker. The container-building docs have been updated to mention the ability to use adocker-compatible CLI.For example, to run the script using nerdctl:
The choice of container CLI follows this priority list:
-dargumentPODMANvariable inzbm-builder.confpodmandockerSpecifying the
PODMANvariable withenvisn't supported, because the value would be overwritten by the value fromzbm-builder.confwhen it gets sourced.