Skip to content

Commit

Permalink
Move wait for solr to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Mar 6, 2023
1 parent 87a424f commit 72e9466
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ services:
- vivo
depends_on:
- solr
entrypoint:
- /bin/bash
- '-c'
- |
while (!</dev/tcp/solr/8983) > /dev/null 2>&1; do sleep 1; done;
sleep 5
/start.sh
networks:
vivo:
4 changes: 0 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,4 @@ if [ -f /applicationSetup.n3 ]; then
fi
fi

echo "Giving time for Solr to startup..."
sleep 15
echo "Starting Tomcat"

catalina.sh run

0 comments on commit 72e9466

Please sign in to comment.