]> piware.de Git - bin.git/commitdiff
build-cockpit-toolbox: Support overriding name and tag
authorMartin Pitt <martin@piware.de>
Mon, 11 Oct 2021 15:27:58 +0000 (17:27 +0200)
committerMartin Pitt <martin@piware.de>
Mon, 11 Oct 2021 15:27:58 +0000 (17:27 +0200)
build-cockpit-toolbox

index aa3dca346fd21d5f27847c5aa628f854d01eaa37..d233b7869fa20ed090873ca7f8c2d5e3383791aa 100755 (executable)
@@ -1,10 +1,11 @@
 #!/bin/sh
 set -eux
-NAME=cockpit
+NAME=${NAME:-cockpit}
+TAG=${TAG:-latest}
 
 toolbox rm --force $NAME || true
-podman pull quay.io/cockpit/tasks
-yes | toolbox create --image quay.io/cockpit/tasks -c $NAME
+podman pull quay.io/cockpit/tasks:${TAG}
+yes | toolbox create --image quay.io/cockpit/tasks:${TAG} -c $NAME
 
 # install some extra development and desktop tools
 toolbox run -c "$NAME" sh -exc '