27 lines
771 B
Bash
Executable File
27 lines
771 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
IMAGE=packagetest
|
|
CONTAINER=packagetest
|
|
MACHINENAME=podman-machine-default
|
|
|
|
function machine_state {
|
|
echo $(podman machine inspect $MACHINENAME | jq -r '.[].State')
|
|
}
|
|
|
|
echo "Starting $MACHINENAME"
|
|
podman machine start -q $MACHINENAME
|
|
while [ "$(machine_state)" != "running" ]
|
|
do
|
|
echo $(machine_state)
|
|
echo "Wating for $MACHINENAME to start"
|
|
sleep 1
|
|
done
|
|
|
|
echo "Machine $MACHINENAME running"
|
|
|
|
echo "Building container images"
|
|
podman build --platform linux/amd64 -f Containerfile.el9 -t ${IMAGE}_el9 .
|
|
podman build --platform linux/amd64 -f Containerfile.fedora -t ${IMAGE)_fedora .
|
|
podman build --platform linux/amd64 -f Containerfile.debian -t ${IMAGE}_debian .
|
|
podman build --platform linux/amd64 -f Containerfile.ubuntu -t ${IMAGE}_ubuntu .
|