Skip to content
Snippets Groups Projects
Commit 3b244e46 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye
Browse files

Merge branch 'mattermost-entrypoint-db-verif' into 'master'

Modif entrypoint Mattermost

See merge request !64
parents fbeb7119 122c66b7
No related branches found
No related tags found
1 merge request!64Modif entrypoint Mattermost
......@@ -22,6 +22,7 @@ RUN apk add --no-cache \
netcat-openbsd \
xmlsec-dev \
tzdata \
postgresql-client \
&& rm -rf /tmp/*
# Get Mattermost
......
......@@ -68,7 +68,11 @@ if [ "$1" = 'mattermost' ]; then
# Wait another second for the database to be properly started.
# Necessary to avoid "panic: Failed to open sql connection pq: the database system is starting up"
sleep 1
until pg_isready -h $DB_HOST -p $DB_PORT_NUMBER
do
echo "Database is not ready yet. Waiting 5 seconds."
sleep 5
done
echo "Starting mattermost"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment