Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions mattermost/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ MAINTAINER http://fedoraproject.org/wiki/Cloud
# based on the work of Takayoshi Kimura <tkimura@redhat.com>

ENV container docker
ENV MATTERMOST_VERSION 3.0.1
ENV MATTERMOST_VERSION 3.6.1

# Labels consumed by Red Hat build service
LABEL Component="mattermost" \
Name="fedora-cloud/mattermost-301" \
Version="3.0.1" \
Name="fedora-cloud/mattermost-361" \
Version="3.6.1" \
Release="1"

# Labels could be consumed by OpenShift
LABEL io.k8s.description="Mattermost is an open source, self-hosted Slack-alternative" \
io.k8s.display-name="Mattermost 3.0.1" \
io.k8s.display-name="Mattermost 3.6.1" \
io.openshift.expose-services="8065:mattermost" \
io.openshift.tags="mattermost,slack"

Expand All @@ -25,16 +25,15 @@ LABEL io.projectatomic.nulecule.environment.required="MYSQL_USER, MYSQL_PASSWORD
io.projectatomic.nulecule.environment.optional="VOLUME_CAPACITY" \
io.projectatomic.nulecule.volume.data="/var/lib/psql/data,1Gi"

RUN dnf update -y && \
dnf install -y tar --setopt=tsflags=nodocs && \
dnf clean all

RUN cd /opt && \
curl -LO https://releases.mattermost.com/3.0.1/mattermost-team-3.0.1-linux-amd64.tar.gz && \
tar xf mattermost-team-3.0.1-linux-amd64.tar.gz && \
rm mattermost-team-3.0.1-linux-amd64.tar.gz && \
mkdir /opt/mattermost/data && \
chmod 777 /opt/mattermost/config /opt/mattermost/logs /opt/mattermost/data
RUN dnf update -y \
&& dnf install -y tar --setopt=tsflags=nodocs \
&& dnf clean all \
&& cd /opt \
&& curl -LO https://releases.mattermost.com/3.6.1/mattermost-team-3.6.1-linux-amd64.tar.gz \
&& tar xf mattermost-team-3.6.1-linux-amd64.tar.gz \
&& rm mattermost-team-3.6.1-linux-amd64.tar.gz \
&& mkdir /opt/mattermost/data \
&& chmod 777 /opt/mattermost/config /opt/mattermost/logs /opt/mattermost/data

COPY mattermost-launch.sh /opt/mattermost/bin/mattermost-launch.sh
COPY config.json /opt/mattermost/config/config.json
Expand Down