[wp-trac] [WordPress Trac] #50342: Local development environment installation doesn't wait for the mysql container to start

WordPress Trac noreply at wordpress.org
Mon Jun 8 13:59:14 UTC 2020


#50342: Local development environment installation doesn't wait for the mysql
container to start
------------------------------+------------------------------
 Reporter:  johnbillion       |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  5.3
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+------------------------------

Comment (by desrosj):

 This can also be demonstrated by chaining commands.

 `npm run env:start && npm run env:install`

 According to the [https://docs.docker.com/compose/startup-order/ Docker
 compose documentation], the `depends_on` can be used to control start up
 order, but Docker does not wait for each service to be "ready".

 There is `wait-on` currently loaded and used in the `local-env/scripts`.
 Looks like that could probably be used here as well.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50342#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list