- only leave fedora enabled - test each package one at a time to ensure they install correctly
25 lines
533 B
Bash
Executable File
25 lines
533 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
[[ -f ./lib.sh ]] && source ./lib.sh || exit 1
|
|
|
|
if [ "$HOSTOS" = "Darwin" ]
|
|
then
|
|
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"
|
|
fi
|
|
|
|
echo "Building container images"
|
|
for os in ${OSBUILDS[@]}
|
|
do
|
|
echo "Building image for ${os}"
|
|
podman build --platform linux/amd64 -f Containerfile.${os} -t ${IMAGE}:${os} .
|
|
done
|