From 89e162636c668ebdcdd72b74a007e9a1f9f4ff59 Mon Sep 17 00:00:00 2001 From: Tejas Bubane Date: Sat, 16 Jun 2018 19:12:52 +0530 Subject: [PATCH] Upgrade to mattermost 5.0.0 (#284) * Upgrade to mattermost 5.0.0 Changelog: https://docs.mattermost.com/administration/changelog.html#release-v5-0 * Change binary name to `mattermost` As described in the [changelog](https://forum.mattermost.org/t/upcoming-changes-with-mattermost-v5-0/5119). --- app/Dockerfile | 4 ++-- app/entrypoint.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index 26be930..e76cae0 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -2,7 +2,7 @@ FROM alpine:3.6 # Some ENV variables ENV PATH="/mattermost/bin:${PATH}" -ENV MM_VERSION=4.10.1 +ENV MM_VERSION=5.0.0 # Build argument to set Mattermost edition ARG edition=enterprise @@ -44,7 +44,7 @@ HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1 COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] WORKDIR /mattermost -CMD ["platform"] +CMD ["mattermost"] # Expose port 8000 of the container EXPOSE 8000 diff --git a/app/entrypoint.sh b/app/entrypoint.sh index 99a2dfe..3e17520 100755 --- a/app/entrypoint.sh +++ b/app/entrypoint.sh @@ -14,10 +14,10 @@ MM_DBNAME=${MM_DBNAME:-mattermost} MM_CONFIG=${MM_CONFIG:-/mattermost/config/config.json} if [ "${1:0:1}" = '-' ]; then - set -- platform "$@" + set -- mattermost "$@" fi -if [ "$1" = 'platform' ]; then +if [ "$1" = 'mattermost' ]; then # Check CLI args for a -config option for ARG in $@; do @@ -77,7 +77,7 @@ if [ "$1" = 'platform' ]; then # Necessary to avoid "panic: Failed to open sql connection pq: the database system is starting up" sleep 1 - echo "Starting platform" + echo "Starting mattermost" fi exec "$@"