savishy / docker-sentrifugo

A docker container for sentrifugo
2 stars 11 forks source link

it takes some time for MySQL to be initialized #12

Closed savishy closed 7 years ago

savishy commented 8 years ago

I am starting the sentrifugo-app container and then sentrifugo-db. The db container takes some time to initialize mysqld. Therefore the third command (which creates the database for sentrifugo) fails.

vish@freeman:~/vishy/devops-agility-roots/docker-sentrifugo$ ./run-container.sh 
eafef0cdadcea033ff9341ba905d52552f104ed839e6e016608702c3786a1236
1fa4e55b19c01b123130de79fdb42b4f7715f7449df75f721db9c626f48c5366
--creating database
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '172.17.0.2' (111)
savishy commented 7 years ago

14 will probably fix this issue; I have run the compose-file version and it works fine.