From 094c487d273d468c5204dc6a578d01c3774155b3 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 11 Oct 2021 17:27:58 +0200 Subject: [PATCH] build-cockpit-toolbox: Support overriding name and tag --- build-cockpit-toolbox | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index aa3dca3..d233b78 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -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 ' -- 2.39.2