From b7425caddb77228cf6341ef4c036d85bb185f5e1 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Thu, 16 Jun 2016 21:15:41 +0900 Subject: [PATCH] app: Make it works without volume mounting This fixes https://github.com/mattermost/mattermost-docker/pull/32#issuecomment-226408765. --- .travis.yml | 10 +++++++++- app/Dockerfile | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 64910ed..04ced96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,17 @@ services: - docker before_install: - - docker-compose up -d + - docker build -t mattermost-prod-db db + - docker build -t mattermost-prod-app app + +install: + - eval $BUILD - sleep 10 +env: + - BUILD="docker-compose up -d" + - BUILD="docker run -d --name db mattermost-prod-db && sleep 5 && docker run -d --link db -p 80:80 --name app mattermost-prod-app" + script: - curl -sSf http://localhost > /dev/null diff --git a/app/Dockerfile b/app/Dockerfile index 7bd22e9..3617ad2 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -5,9 +5,10 @@ RUN mkdir -p /mattermost/data RUN curl https://releases.mattermost.com/3.0.2/mattermost-team-3.0.2-linux-amd64.tar.gz | tar -xvz +RUN rm /mattermost/config/config.json COPY config.template.json / -COPY docker-entry.sh / +COPY docker-entry.sh / RUN chmod +x /docker-entry.sh ENTRYPOINT ["/docker-entry.sh"]