scripts: dev_cli.sh: add option to specify container runtime
For example: ```shell ./scripts/dev_cli.sh build --release --libc musl --runtime "sudo nerdctl" ``` works. And presumably podman as well. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
de1af55e22
commit
88ed85247e
1 changed files with 5 additions and 0 deletions
|
|
@ -226,6 +226,11 @@ cmd_build() {
|
|||
} ;;
|
||||
"--debug") { build="debug"; } ;;
|
||||
"--release") { build="release"; } ;;
|
||||
"--runtime")
|
||||
shift
|
||||
DOCKER_RUNTIME="$1"
|
||||
export DOCKER_RUNTIME
|
||||
;;
|
||||
"--libc")
|
||||
shift
|
||||
[[ "$1" =~ ^(musl|gnu)$ ]] ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue