Lots of the flavour images do a startup_lite && sleep 30 && ... in order to do things on a live database. This number can be quite variable. 30s was fine for me, but wasn't for a colleague who had to increase it.
This script can be used in place of sleep 30 and will sleep until /api/version is available. This should be much more reliable.
A timeout option is provided to prevent abusing build resources if something else is at fault (e.g. a missing package allowed startup_lite to succeed initially but fail silently later).
Lots of the flavour images do a
startup_lite && sleep 30 && ...
in order to do things on a live database. This number can be quite variable. 30s was fine for me, but wasn't for a colleague who had to increase it.This script can be used in place of
sleep 30
and will sleep until/api/version
is available. This should be much more reliable.A timeout option is provided to prevent abusing build resources if something else is at fault (e.g. a missing package allowed startup_lite to succeed initially but fail silently later).