Compare commits

..

1 Commits

Author SHA1 Message Date
b1a9299bd8 chore: publish 1.3.1+9.11.4 release 2024-11-12 13:50:15 +01:00
9 changed files with 9 additions and 23 deletions

View File

@ -45,7 +45,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- toolshed/auto-recipes-catalogue-json
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -1,4 +1,4 @@
TYPE=mattermost-lts
TYPE=mattermost
# Domain of service
DOMAIN=mattermost.example.com

View File

@ -1,2 +1 @@
export ABRA_MATTERMOST_ENTRYPOINT_VERSION=v2
export BUSYBOX_VERSION=v1
export ENTRYPOINT_VERSION=v1

BIN
busybox

Binary file not shown.

View File

@ -2,7 +2,7 @@ version: "3.8"
services:
app:
image: mattermost/mattermost-team-edition:10.11.7
image: mattermost/mattermost-team-edition:9.11.4
environment:
- TZ
- MM_SQLSETTINGS_DRIVERNAME=postgres
@ -28,16 +28,13 @@ 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=2.1.1+10.11.7"
- "coop-cloud.${STACK_NAME}.version=1.3.1+9.11.4"
- "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
@ -70,11 +67,8 @@ secrets:
configs:
abra_mattermost_entrypoint:
name: ${STACK_NAME}_entrypoint_${ABRA_MATTERMOST_ENTRYPOINT_VERSION}
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: ./entrypoint.sh
busybox:
name: ${STACK_NAME}_busybox_${BUSYBOX_VERSION}
file: ./busybox
networks:
proxy:

6
entrypoint.sh Executable file → Normal file
View File

@ -1,7 +1,7 @@
#!/bin/busybox sh
#!/bin/sh
set -e
if test -f "/run/secrets/postgres_password"; then
pwd=`/bin/busybox cat /run/secrets/postgres_password`
pwd=`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
/mattermost/bin/mattermost
/entrypoint.sh "mattermost"

View File

@ -1 +0,0 @@
hotfix: rollback to last functional version

View File

@ -1 +0,0 @@
Mattermost Platform Extended Support Release 10.5.8 contains a high severity level security fix.

View File

@ -1,5 +0,0 @@
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.