fix remaining packages
- testing container is starting to work on macos - still need to do testing for linux machines
This commit is contained in:
23
tests/setup.sh
Executable file
23
tests/setup.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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 .
|
||||
Reference in New Issue
Block a user