Skip to content

Commit f1b7125

Browse files
authored
docker: make home wait for solr via healthcheck in compose.override.yaml (#12325)
1 parent f27ac66 commit f1b7125

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

compose.override.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ services:
146146
- ${OL_MOUNT_DIR:-.}:/openlibrary
147147
# For OSP download persistence across restarts
148148
- solr-updater-data:/solr-updater-data
149+
depends_on:
150+
solr:
151+
condition: service_healthy
149152

150153
volumes:
151154
ol-vendor:

docker/ol-home-start.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ python --version
88
echo "Waiting for postgres..."
99
until pg_isready --host db; do sleep 5; done
1010

11-
echo "Waiting for Solr..."
12-
until curl -s -o /dev/null -w "%{http_code}" "http://solr:8983/solr/openlibrary/select?q=*:*&rows=0&wt=json" | grep -q "200"; do
13-
sleep 5;
14-
done
11+
1512
make reindex-solr

0 commit comments

Comments
 (0)