debian-koji-osbuild/test/build-container.sh
Christian Kellner 3b9980df50 test/build-container: simple helper script
Simple helper to build the two container for the hub and the builder.
2020-09-25 22:33:31 +01:00

18 lines
332 B
Bash
Executable file

#!/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} .