]> git.ipfire.org Git - thirdparty/patchwork.git/commit
docker: increase database connection timeout
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Thu, 25 May 2017 05:36:18 +0000 (15:36 +1000)
committerStephen Finucane <stephen@that.guru>
Fri, 26 May 2017 08:49:41 +0000 (09:49 +0100)
commit9d63531789955f5c4dec2c0c0899485b79fdcb96
treeb5cbaddb27009b051fd8aeec00dcaa635e4af664
parentdb4c913430be5713096751529be4b5aaa53180e0
docker: increase database connection timeout

When starting the Docker environment, if the web container can't see the
database immediately, it waits 5 seconds, tries again, then waits 15
seconds more to account for first-time start-ups where it takes a bit
longer for the database to be initialised.

Some of us, unfortunately, have slow computers with slow mechanical hard
drives which take just a bit longer. Increase the second timeout from 15
seconds to 60 seconds, testing every 5 seconds.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
tools/docker/entrypoint.sh