mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
de1af55e22
commit
88ed85247e
@@ -226,6 +226,11 @@ cmd_build() {
|
|||||||
} ;;
|
} ;;
|
||||||
"--debug") { build="debug"; } ;;
|
"--debug") { build="debug"; } ;;
|
||||||
"--release") { build="release"; } ;;
|
"--release") { build="release"; } ;;
|
||||||
|
"--runtime")
|
||||||
|
shift
|
||||||
|
DOCKER_RUNTIME="$1"
|
||||||
|
export DOCKER_RUNTIME
|
||||||
|
;;
|
||||||
"--libc")
|
"--libc")
|
||||||
shift
|
shift
|
||||||
[[ "$1" =~ ^(musl|gnu)$ ]] ||
|
[[ "$1" =~ ^(musl|gnu)$ ]] ||
|
||||||
|
|||||||
Reference in New Issue
Block a user