mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-25 22:18:24 +00:00
Fix forum init job
Now, when we run init for the forum, we go through the forum container entrypoint. At this stage, the elasticsearch:9200/content url returns a 404 error, because, well, the init job has not run yet. So instead of checking for the /content url, we simply check that the elasticsearch container is up and running. Note that this might cause the initial forum container to crash right after start.
This commit is contained in:
parent
bce6432d85
commit
30e816d232
@ -3,6 +3,6 @@
|
||||
export MONGOHQ_URL="mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service"
|
||||
|
||||
echo "Waiting for mongodb/elasticsearch..."
|
||||
dockerize -wait tcp://$MONGODB_HOST:$MONGODB_PORT -wait $SEARCH_SERVER/content -wait-retry-interval 5s -timeout 600s
|
||||
dockerize -wait tcp://$MONGODB_HOST:$MONGODB_PORT -wait $SEARCH_SERVER -wait-retry-interval 5s -timeout 600s
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user