polydigital / backdrop-civicrm-docker

0 stars 1 forks source link

Deploying fresh docker-compose fails on backdrop because mysql isn't ready #4

Closed tabroughton closed 5 years ago

tabroughton commented 5 years ago

Mysql db is starting up and so is backdrop container. When backdrop uses a cache for the composer install then it's too fast for mysql and the installation of backdrop fails on drush si because the db isn't ready for connections.

The current way to manage this is to composer install and pull packages, the time it takes allows for mysql to become ready. This is purely chance, takes longer to create containers than it should and uses much more bandwidth than is necessary.

tabroughton commented 5 years ago

suggestions https://docs.docker.com/compose/startup-order/

tabroughton commented 5 years ago

using https://github.com/vishnubob/wait-for-it