test/build-container: simple helper script
Simple helper to build the two container for the hub and the builder.
This commit is contained in:
parent
b2a62d4dcf
commit
3b9980df50
1 changed files with 18 additions and 0 deletions
18
test/build-container.sh
Executable file
18
test/build-container.sh
Executable 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} .
|
||||
Loading…
Add table
Add a link
Reference in a new issue