hybtel commited on
Commit
e7df922
·
verified ·
1 Parent(s): ddddff4

Create docker-entry.sh

Browse files
Files changed (1) hide show
  1. docker-entry.sh +18 -0
docker-entry.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
3
+ # See License.txt for license information.
4
+
5
+ echo "Starting PostgreSQL"
6
+ docker-entrypoint.sh -c 'shared_buffers=256MB' -c 'max_connections=300' &
7
+
8
+ until pg_isready -hlocalhost -p 5432 -U "$POSTGRES_USER" &> /dev/null; do
9
+ echo "postgres still not ready, sleeping"
10
+ sleep 5
11
+ done
12
+
13
+ echo "Updating CA certificates"
14
+ update-ca-certificates --fresh >/dev/null
15
+
16
+ echo "Starting platform"
17
+ cd mattermost
18
+ exec ./bin/mattermost --config=config/config_docker.json