Support PREK_CONTAINER_RUNTIME=podman to override container runtime#1033
Support PREK_CONTAINER_RUNTIME=podman to override container runtime#1033j178 merged 2 commits intoj178:masterfrom
PREK_CONTAINER_RUNTIME=podman to override container runtime#1033Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1033 +/- ##
==========================================
+ Coverage 89.83% 89.85% +0.01%
==========================================
Files 72 72
Lines 13138 13272 +134
==========================================
+ Hits 11802 11925 +123
- Misses 1336 1347 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.00% (16.2 MiB → 16.2 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
docs/configuration.md
Outdated
|
|
||
| - `PREK_NATIVE_TLS` - Use system's trusted store instead of the bundled `webpki-roots` crate. | ||
|
|
||
| - `PREK_FORCE_PODMAN` - If both docker and podman exist force the use of podman over docker. |
There was a problem hiding this comment.
I’m thinking we could call this PREK_CONTAINER_RUNTIME. By default, prek would automatically try whatever’s available—docker, podman, etc. But you could override that with PREK_CONTAINER_RUNTIME if you want to force a specific one. Like, set it to docker to only use docker, or podman to only use podman. What do you think?
There was a problem hiding this comment.
That makes sense to me, happy to make that change later today 👍
There was a problem hiding this comment.
Have updated as suggested, hope it looks ok :-)
f76bf44 to
1073ff2
Compare
use both docker and podman runtimes 1. if only docker on path use docker runtime 2. if only podman on path use podman runtime 3. to specify runtime use PREK_CONTAINER_RUNTIME Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
1073ff2 to
6fa02b9
Compare
PREK_CONTAINER_RUNTIME=podman to override container runtime
|
Thank you! |
|
No problem, should be thanking you for the goodness knows how many hours you have spent on this :-) |
use both docker and podman runtimes