b7425caddb
This fixes https://github.com/mattermost/mattermost-docker/pull/32#issuecomment-226408765.
23 lines
483 B
YAML
23 lines
483 B
YAML
sudo: required
|
|
|
|
services:
|
|
- docker
|
|
|
|
before_install:
|
|
- 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
|
|
|
|
after_failure:
|
|
- timeout 3s docker-compose logs app db web
|