Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Picasoft
Technique
Dockerfiles
Commits
3b244e46
Commit
3b244e46
authored
Jun 12, 2021
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
pica-mattermost/Dockerfile
View file @
3b244e46
...
...
@@ -22,6 +22,7 @@ RUN apk add --no-cache \
netcat-openbsd
\
xmlsec-dev
\
tzdata
\
postgresql-client
\
&&
rm
-rf
/tmp/
*
# Get Mattermost
...
...
pica-mattermost/entrypoint.sh
View file @
3b244e46
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment