Archived
Allow config location to be customized from CLI (#66)
* Allow config location to be customized from CLI Config file should be stored in a persistent storage as it is stores the app status and configuration. It should be independent from container life cycle and mounted into app container. This commit allows config location to be changed through CLI. So that when the persistent storage is mounted, the location can be pointed to the mounted config file. Also some updates for best practices: * extracted version numbers in Dockerfile into a environment variable * Added mattermost/bin to PATH environment variable * Add customizable environment variables to readme
This commit is contained in:
1 parent
02745dd6b4
commit
2a0cf0cb21
5 files changed
+82
-23
No files matched your search
+10
-1
@@ -1,9 +1,13 @@
|
||||
FROM ubuntu:14.04
|
||||
|
||||
ENV PATH="/mattermost/bin:${PATH}"
|
||||
|
||||
RUN apt-get update && apt-get -y install curl netcat
|
||||
RUN mkdir -p /mattermost/data
|
||||
|
||||
RUN curl https://releases.mattermost.com/3.6.2/mattermost-team-3.6.2-linux-amd64.tar.gz | tar -xvz
|
||||
ENV MM_VERSION=3.6.2
|
||||
|
||||
RUN curl https://releases.mattermost.com/$MM_VERSION/mattermost-team-$MM_VERSION-linux-amd64.tar.gz | tar -xvz
|
||||
|
||||
RUN rm /mattermost/config/config.json
|
||||
COPY config.template.json /
|
||||
@@ -13,3 +17,8 @@ RUN chmod +x /docker-entry.sh
|
||||
ENTRYPOINT ["/docker-entry.sh"]
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
VOLUME /mattermost/data
|
||||
|
||||
WORKDIR /mattermost/bin
|
||||
CMD ["platform"]
|
||||
Reference in new issue
Block a user