test/build-container: simple helper script

Simple helper to build the two container for the hub and the builder.
This commit is contained in:
Christian Kellner 2020-09-25 18:52:07 +02:00 committed by Tom Gundersen
parent b2a62d4dcf
commit 3b9980df50

18
test/build-container.sh Executable file
View file

@ -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} .