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).
This commit is contained in:
Tejas Bubane 2018-06-16 19:12:52 +05:30 committed by Kyâne Pichou
parent 8c6b058e72
commit 89e162636c
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ FROM alpine:3.6
# Some ENV variables # Some ENV variables
ENV PATH="/mattermost/bin:${PATH}" ENV PATH="/mattermost/bin:${PATH}"
ENV MM_VERSION=4.10.1 ENV MM_VERSION=5.0.0
# Build argument to set Mattermost edition # Build argument to set Mattermost edition
ARG edition=enterprise ARG edition=enterprise
@ -44,7 +44,7 @@ HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1
COPY entrypoint.sh / COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /mattermost WORKDIR /mattermost
CMD ["platform"] CMD ["mattermost"]
# Expose port 8000 of the container # Expose port 8000 of the container
EXPOSE 8000 EXPOSE 8000

View File

@ -14,10 +14,10 @@ MM_DBNAME=${MM_DBNAME:-mattermost}
MM_CONFIG=${MM_CONFIG:-/mattermost/config/config.json} MM_CONFIG=${MM_CONFIG:-/mattermost/config/config.json}
if [ "${1:0:1}" = '-' ]; then if [ "${1:0:1}" = '-' ]; then
set -- platform "$@" set -- mattermost "$@"
fi fi
if [ "$1" = 'platform' ]; then if [ "$1" = 'mattermost' ]; then
# Check CLI args for a -config option # Check CLI args for a -config option
for ARG in $@; for ARG in $@;
do 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" # Necessary to avoid "panic: Failed to open sql connection pq: the database system is starting up"
sleep 1 sleep 1
echo "Starting platform" echo "Starting mattermost"
fi fi
exec "$@" exec "$@"