#!/bin/sh
while [ -z $(docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /var/www/pvs/dev/pvs_instance/manage.py id list) ]; do
  >&2 echo "Collection is not created yet - sleeping"
    sleep 20
  done

while [ -z $(docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /var/www/pvs/dev/pvs_instance/manage.py id list) ]; do
  >&2 echo "Collection is not created yet - sleeping"
    sleep 20
  done
