#!/bin/bash ############################# ## Pull latest image ## ############################# echo "=====================" echo "Fetching latest image" echo "=====================" docker pull soffid/pam-store echo "=====================" echo "Creating store server" echo "=====================" docker stop soffid-pam-store docker rm soffid-pam-store docker create \ --network soffid.internal \ -v soffid-pam-store:/opt/soffid/tomee/data \ -p 8081:8080 \ --name soffid-pam-store \ soffid/pam-store:1.4.8 >/dev/null docker start soffid-pam-store >/dev/null echo "Waiting for store server" # Wait for store server sleep 3 while ! curl http://localhost:8081/store/check -o /dev/null -s -S do sleep 3 done