debian-koji-osbuild/test/build-container.sh
Christian Kellner aa8513c20d test: move container/ into test/
Move the container directory, containing the container definitions
for all the test containers, to test/, where all the other test-
related files are located (with the exception of `Schutzbot`).
Use `test/build-container.sh` to build the container, instead of
replicating that in `test-integration.sh`.
2020-09-29 21:40:25 +01:00

18 lines
342 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 test/container/hub/Dockerfile.${ID} .
podman build -t \
koji.builder \
-f test/container/builder/Dockerfile.${ID} .