app: Make it works without volume mounting
This fixes https://github.com/mattermost/mattermost-docker/pull/32#issuecomment-226408765.
This commit is contained in:
parent
82a0874255
commit
b7425caddb
10
.travis.yml
10
.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
|
||||
|
||||
|
@ -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"]
|
||||
|
||||
|
Reference in New Issue
Block a user