forked from coop-cloud/mattermost
Compare commits
44 Commits
0.2.1+8.1.
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| fc265a1188 | |||
| 2f94930db2 | |||
| f2d2cf7c88 | |||
| 177d5a858f | |||
| cae3921b41 | |||
| 354e476243 | |||
| 1f1ab728fc | |||
| b2e1e004c6 | |||
| 3e109108d9 | |||
| 6cbf638a79 | |||
| 80b0db2700 | |||
| bd133cb6e4 | |||
| 18941a270a | |||
| e15e086322 | |||
| b6c2a80289 | |||
| 25117632fc | |||
| f58c9a2aab | |||
| 18cf2d21cc | |||
| fc31939b5e | |||
| b1427c9a1e | |||
| 2e177985f8 | |||
| 8e63b9839d | |||
| c83e59cfc5 | |||
| 142cd05e01 | |||
| be6939d39b | |||
| 1bbc0bc5e3 | |||
| 91136d15a7 | |||
| bf7466f8b2 | |||
| 33466a38cf | |||
| 4c6dca85fa | |||
| 2e366449bf | |||
| a5ba7e60e7 | |||
| fdd0610784 | |||
| de797a654a | |||
| e42bc0f2a5 | |||
| 5a30d2d99b | |||
| 98ef1ca228 | |||
| 16f489fd8d | |||
| 12d0f85607 | |||
| 123af69e49 | |||
| bb5df287e8 | |||
| c274319f6f | |||
| 9d83d0bed0 | |||
| 177a96d597 |
@ -26,9 +26,9 @@ steps:
|
||||
from_secret: autono_bot_access_token
|
||||
depends_on:
|
||||
- deployment
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
@ -45,7 +45,7 @@ steps:
|
||||
from_secret: drone_abra-bot_token
|
||||
fork: true
|
||||
repositories:
|
||||
- coop-cloud/auto-recipes-catalogue-json
|
||||
- toolshed/auto-recipes-catalogue-json
|
||||
|
||||
trigger:
|
||||
event: tag
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
TYPE=mattermost
|
||||
TYPE=mattermost-lts
|
||||
|
||||
# Domain of service
|
||||
DOMAIN=mattermost.example.com
|
||||
|
||||
16
README.md
16
README.md
@ -2,14 +2,14 @@
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Category**:
|
||||
* **Status**:
|
||||
* **Image**:
|
||||
* **Healthcheck**: N
|
||||
* **Backups**: N
|
||||
* **Email**:
|
||||
* **Tests**: N
|
||||
* **SSO**: N
|
||||
* **Category**: Apps
|
||||
* **Status**: 3
|
||||
* **Image**: [`mattermost/mattermost-team-edition`](https://hub.docker.com/r/mattermost/mattermost-team-edition), 4, upstream
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: Yes
|
||||
* **Email**: 1
|
||||
* **Tests**: 2
|
||||
* **SSO**: No
|
||||
|
||||
<!-- endmetadata -->
|
||||
|
||||
|
||||
3
abra.sh
3
abra.sh
@ -1 +1,2 @@
|
||||
export ENTRYPOINT_VERSION=v1
|
||||
export ABRA_MATTERMOST_ENTRYPOINT_VERSION=v2
|
||||
export BUSYBOX_VERSION=v1
|
||||
|
||||
20
compose.yml
20
compose.yml
@ -2,7 +2,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: mattermost/mattermost-team-edition:8.1.2
|
||||
image: mattermost/mattermost-team-edition:10.11.7
|
||||
environment:
|
||||
- TZ
|
||||
- MM_SQLSETTINGS_DRIVERNAME=postgres
|
||||
@ -28,11 +28,16 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.2.1+8.1.2"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.1.1+10.11.7"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/mattermost,/etc/ssl"
|
||||
configs:
|
||||
- source: abra_mattermost_entrypoint
|
||||
target: /abra-mattermost-entrypoint.sh
|
||||
mode: 0555
|
||||
- source: busybox
|
||||
target: /bin/busybox
|
||||
mode: 0555
|
||||
secrets:
|
||||
- postgres_password
|
||||
entrypoint: /abra-mattermost-entrypoint.sh
|
||||
@ -50,6 +55,12 @@ services:
|
||||
- postgres_password
|
||||
networks:
|
||||
- internal
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
backupbot.backup.pre-hook: "PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /var/lib/postgresql/data/postgres-backup.sql"
|
||||
backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/postgres-backup.sql"
|
||||
backupbot.backup.path: "/var/lib/postgresql/data/"
|
||||
|
||||
|
||||
secrets:
|
||||
@ -59,8 +70,11 @@ secrets:
|
||||
|
||||
configs:
|
||||
abra_mattermost_entrypoint:
|
||||
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
||||
name: ${STACK_NAME}_entrypoint_${ABRA_MATTERMOST_ENTRYPOINT_VERSION}
|
||||
file: ./entrypoint.sh
|
||||
busybox:
|
||||
name: ${STACK_NAME}_busybox_${BUSYBOX_VERSION}
|
||||
file: ./busybox
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
||||
6
entrypoint.sh
Normal file → Executable file
6
entrypoint.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
#!/bin/busybox sh
|
||||
set -e
|
||||
if test -f "/run/secrets/postgres_password"; then
|
||||
pwd=`cat /run/secrets/postgres_password`
|
||||
pwd=`/bin/busybox cat /run/secrets/postgres_password`
|
||||
if [ -z $pwd ]; then
|
||||
echo >&2 "error: /run/secrets/postgres_password is empty"
|
||||
exit 1
|
||||
@ -16,4 +16,4 @@ else
|
||||
fi
|
||||
|
||||
# https://github.com/mattermost/mattermost-server/blob/master/build/Dockerfile
|
||||
/entrypoint.sh "mattermost"
|
||||
/mattermost/bin/mattermost
|
||||
|
||||
1
release/1.4.1+9.5.11
Normal file
1
release/1.4.1+9.5.11
Normal file
@ -0,0 +1 @@
|
||||
hotfix: rollback to last functional version
|
||||
1
release/2.0.2+10.5.8
Normal file
1
release/2.0.2+10.5.8
Normal file
@ -0,0 +1 @@
|
||||
Mattermost Platform Extended Support Release 10.5.8 contains a high severity level security fix.
|
||||
5
release/2.1.0+10.11.6
Normal file
5
release/2.1.0+10.11.6
Normal file
@ -0,0 +1,5 @@
|
||||
the docker containers in 10.11 branch don't contain any unix programs. That
|
||||
means there's no sh or bash, no cat etc etc. We need to have a shell to run
|
||||
our entrypoint and export the postgres URL as an env variable. To overcome
|
||||
this we insert a busybox binary as a config into the container. There's no
|
||||
action required on the side of the operator but it's important to note.
|
||||
Reference in New Issue
Block a user