Waits on a MySQL container to become available before exiting.
Run this container while linked to a MySQL container to cause automation scripts to pause until MySQL is ready.
docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=my-secret mysql
docker run --link mysql dhwebb/wait4mysql
You can pass in the following environment variables: HOST
, PORT
, USERNAME
, PASSWORD
, TIMEOUT
.