#!/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 -t $IMAGE .