Skip to content

Commit

Permalink
Use proper wait strategy for mysql container
Browse files Browse the repository at this point in the history
  • Loading branch information
aguibert committed Jun 16, 2020
1 parent ed73ae5 commit 339eb4f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions integration-tests/reactive-mysql-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,12 @@
<!-- Speed things up a bit by not actually flushing writes to disk -->
<tmpfs>/var/lib/mysql</tmpfs>
<wait>
<!-- good docs found at: http://dmp.fabric8.io/#build-healthcheck -->
<tcp>
<mode>direct</mode>
<ports>
<port>3306</port>
</ports>
</tcp>
<!-- Unfortunately booting MariaDB is slow, needs to set a generous timeout: -->
<time>40000</time>
<!-- good docs found at: http://dmp.fabric8.io/#start-wait -->
<time>20000</time>
<!-- wait until MySQL is actually up by checking if mysqladmin can ping the server with specified username/password -->
<exec>
<postStart>mysqladmin ping -h localhost -u hibernate_orm_test -phibernate_orm_test</postStart>
</exec>
</wait>
<volumes>
<bind>
Expand Down

0 comments on commit 339eb4f

Please sign in to comment.