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`.
18 lines
342 B
Bash
Executable file
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} .
|