Commit Graph

27 Commits

Author SHA1 Message Date
wf6DJd8a3xSSCZbn
6f8c34c0f3
Updating shell scripts to adhear better to Bash style guides (#510)
* Updated Shell Script Format

Signed-off-by: Spencer <wf6DJd8a3xSSCZbn@protonmail.com>
2021-01-08 16:45:00 +01:00
Oliver
a685cc24e5
Fixing docker-compose build process (#471)
Currently the command `docker-compose build` throws an error for building the database because it uses an old pip version.

This PR updates pip right before it is called. Anyways this should just be a temporary fix because the image uses Python 2.7 wich out of support since Jan 2020
2020-04-28 09:57:15 +02:00
nvjacobo
7fd2eb47a9
docker-compose: fix DB Docker building error #463 related wal-e 1.0.0 and azure (#464) 2020-04-15 09:30:49 +02:00
Kevin Kandlbinder
8c8894ea15
Update Dockerfile (#448)
Closes #446.
2020-02-07 10:53:12 +01:00
Marc Becker
4075f0f922 Installing missing package pv (#443)
I tried to use wal-e as mentioned on dockerhub (see https://hub.docker.com/r/mattermost/mattermost-prod-db). To do the base backup I had to do some additional steps (see https://github.com/mattermost/mattermost-docker/issues/346):
- mount a volume into the database docker container (path in the container is /etc/wal-e.d/env) and put all credentials and the s3 prefix to this folder
- exec into the container and create a superuser (Command: CREATE USER postgres SUPERUSER;)

Now it still fails with the message, that the package *pv* is missing
2020-01-14 18:25:53 +01:00
Simon Staszkiewicz
39e9023691 Bug fixes (#427)
* Call the base container entrypoint with proper arguments

* Build the app container using path to directory

* Add CONTRIBUTING.md
2019-11-29 16:25:20 +01:00
Victor Yang
3ff54bc90f fix S3 wal-e support (#324)
* fix S3 wal-e support
2018-10-29 12:00:20 +01:00
Kyâne Pichou
94c09b61a0
Fix database HEALTHCHECK with correct user/db name (#330)
Closes #325
2018-10-17 20:30:46 +02:00
Kyâne Pichou
42e8e07c3f
Fix database healthcheck (#318)
Because the PostgreSQL user is not always "postgres", do not specify a
user to the Healthcheck command. It will also works correctly.

Closes #313
2018-10-04 09:32:02 +02:00
antoineHC
f79bbea7a4 Production Hardening (#241) 2018-04-15 19:33:49 +02:00
Kyâne Pichou
bfb3a77f9a
Change pip install on DB image (#257) 2018-04-15 00:34:49 +02:00
3_1_3_u
4e242572f1 Images Postgres Alpine, optimization (#207) 2018-02-26 16:43:54 +01:00
Kyâne Pichou
5cc50eb522 Use best practices for Dockerfiles (#180) 2017-10-13 14:12:30 +02:00
FingerLiu
bd49394e75 add libffi-dev 2017-05-31 11:40:12 +08:00
FingerLiu
307cf8f10a fix build error on Ubuntu 14.04
libssl-dev is needed to be installed on Ubuntu or the build won't be succeed.
2017-05-24 14:41:55 +08:00
nikosch86
142b766cde make use of postgres image db init script, use their variable naming … (#100)
* make use of postgres image db init script, use their variable naming scheme, make setup-wale executable so it can actually run
2017-02-23 13:32:24 -08:00
Pan Luo
4c30235fde
Export vars to fix the postgres container error 2017-01-30 15:57:17 -08:00
Rémi Alvado
1e02b33cd3 fix(deps): fix dependency toward wal-e to avoid issues with Python minimal requirement 2016-10-07 14:52:51 +02:00
Pan Luo
0f4d339b57
Add environment var to allow customize archive timeout 2016-08-16 23:45:54 -07:00
Yi EungJun
808f5af669 db: Make docker-entrypoint1.sh executable
The file should be marked as executable in the container because the
host on which it was built may not support executable bit (e.g.
Microsoft Windows).

This fixes https://github.com/mattermost/mattermost-docker/issues/20.
2016-05-17 19:21:12 +09:00
Pan Luo
97966787dd
Use $PGDATA env var to setup wal-e
$PGDATA is set in upstream postgres dockerfile and should be used in
downstream in case the postgres data directory is changed in the future.
2016-05-08 10:51:16 -07:00
Pan Luo
530e8f0194
Fix #15, WAL in archive mode when backup is off
WAL logs in archive mode will consume a lot more spaces and not useful
when backup is off. This fix add ability to switch WAL logs mode based
on the backup switch.
2016-05-06 23:27:41 -07:00
Pan Luo
ba31a0da79 Add Wal-E backup support 2016-04-20 02:13:36 -07:00
Yi EungJun
1a4839cd96 db: Remove unnecessary blank 2016-04-19 00:48:08 +09:00
Pan Luo
031858fbae Allow db host, name user and password to be configurable 2016-04-15 21:31:28 -07:00
Yi EungJun
57d1d448b2 db: Specify version of pgsql
You may see this error if you use pgsql 9.5 with 9.4 data.

> FATAL:  database files are incompatible with server
> DETAIL:  The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 9.5.0.
2016-01-25 12:31:29 +09:00
Yi EungJun
4cf5bdc8c8 Docker for mattermost in production
1. Put cert.pem into web/cert and key-no-password.pem into web/cert/private.
2. docker-compose up -d

The settings of the servers are based on
https://github.com/mattermost/platform/blob/master/doc/install/Production-Ubuntu.md.

app/config_docker.json is based on
https://raw.githubusercontent.com/mattermost/platform/master/config/config.json.
2015-11-30 17:54:49 +09:00