From a81a4fd27f4ad3861f1af1f8ba72541a3b9fafd4 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 2 Sep 2020 19:40:08 +0200 Subject: [PATCH] run-container: make koji image a config an option --- run-koji-container.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run-koji-container.sh b/run-koji-container.sh index cbc4a9d..001bc6e 100755 --- a/run-koji-container.sh +++ b/run-koji-container.sh @@ -4,6 +4,8 @@ set -eu SHARE_DIR=/tmp/osbuild-composer-koji-test DATA_DIR=/var/tmp/osbuild-koji-data +KOJI_HUB_IMAGE=quay.io/osbuild/koji:v1 + koji_stop () { echo "Shutting down containers, please wait..." @@ -91,7 +93,7 @@ koji_start() { -e POSTGRES_PASSWORD=kojipass \ -e POSTGRES_DB=koji \ -e POSTGRES_HOST=org.osbuild.koji.postgres \ - quay.io/osbuild/koji:v1 + ${KOJI_HUB_IMAGE} # TODO: we need to wait for the database to be initialized here. A better method should be used. sleep 2