From 3b9980df50f328ea67e587cb81f8bb6894ff9ad7 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 25 Sep 2020 18:52:07 +0200 Subject: [PATCH] test/build-container: simple helper script Simple helper to build the two container for the hub and the builder. --- test/build-container.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 test/build-container.sh diff --git a/test/build-container.sh b/test/build-container.sh new file mode 100755 index 0000000..14eb98d --- /dev/null +++ b/test/build-container.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -euo pipefail + +# this script must be run as root +if [ $UID != 0 ]; then + echo This script must be run as root. + exit 1 +fi + +source /etc/os-release + +podman build \ + -t koji.hub \ + -f container/hub/Dockerfile.${ID} . + +podman build -t \ + koji.builder \ + -f container/builder/Dockerfile.${ID} .