You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue, as far as I can see it, is that on my machine, the es instance does not spin up in 15s(3 retries x 5s from the web service). This causes the web box to exit prematurely. I worked around this by using the wait-for-it script and modifying docker-compose to match. The workarond, in summary:
Download wait-for-it.sh file into the flask-app directory
The issue, as far as I can see it, is that on my machine, the es instance does not spin up in 15s(3 retries x 5s from the web service). This causes the web box to exit prematurely. I worked around this by using the wait-for-it script and modifying docker-compose to match. The workarond, in summary:
command: python app.py
withcommand: ["./wait-for-it.sh", "es:9200", "--", "python", "app.py"]
docker build -t <username>/foodtrucks .
to update the imagedocker-compose up
This is probably not the best way to do it but I thought I'd record it here in case anyone else has the same issues.
Another obvious solution is simply to increase the timeout. Happy to make a pull request for either.
The text was updated successfully, but these errors were encountered: