Skip to content

Commit

Permalink
ci: add wait for elasticsearch (#3827)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpcross authored Aug 20, 2024
1 parent cebdcc2 commit a62106b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/deploy-to-container/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ echo "Running Mail Archive checks..."
echo "Running Mail Archive migrations..."
./backend/manage.py migrate --settings=mlarchive.settings.settings_sandbox

until nc -z -w 5 "$ELASTICSEARCH_HOST" 9200; do
echo "Waiting for Elasticsearch..."
sleep 5
done

echo "Running Initializing index..."
./backend/manage.py init_index

Expand Down
1 change: 1 addition & 0 deletions docker/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update --fix-missing && apt-get install -qy \
locales \
postgresql-client-14 \
memcached \
netcat \
nodejs \
rsyslog \
sudo \
Expand Down

0 comments on commit a62106b

Please sign in to comment.