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:
parent
8c6b058e72
commit
89e162636c
@ -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
|
||||
|
@ -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 "$@"
|
||||
|
Reference in New Issue
Block a user