From 88ed85247e4e2cd87c48ca92aaa50453c9195f50 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 19 Apr 2022 13:43:03 -0400 Subject: [PATCH] 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 --- scripts/dev_cli.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index 4e0882e65..effe282b3 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -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)$ ]] ||