forked from eBayClassifiedsGroup/PanteraS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 2.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: bash
sudo: required
services: docker
env:
global:
- DOCKER_APP_VERSION=5:19.03.5~3-0~ubuntu-xenial
notifications:
slack:
rooms:
secure: DThvgzkCwCBt5JlDGU6Po6sWM5nAJubUkcn2H90qRsCARL1kLgbv8KHLkMhv0SnGJfULGr5qVGcGNUzMghBkGwEbyHp6goLp8mPpohp/OGB8pV4CUKWjh20nR/2Dedq+y2clEY3fNNFIBua5Or6XTa7CoedZocR6RwTtbttA+IZCcM3pvLlZwEBsz9xbXverS7qaXH/dQ7rInOJEYxEXmlxSU2Yej2rlMIHEJVeyNoN30lw8oJjd6OLlXXAndr4t6AuZ1FABkmuEycfxDHuZL+fOmqSaGU2R77guPyOdJrQzcGfYSP1RA9ZpEsfFmftAJbcA1bqdbyHouVhMdfR/CFwqRUekymkgAAYqLrt/a0U57SGbR0dZ4upNzjEyO22dc1L1ughJTzPPgWXUeI1ENYi5xkEdFZHiBy8kSKgePusEcfdU16bQ9ZXCurbswBJfDoT2UG7mY9k3lyQQSSu1n+KzzZlbZcP027n1x5go5wRNadRCWoJJKUFghBJFB+qypCTXBCGtxV83OUuLY8cJpSNvzOI85SSEyvhrF70rrrjkuQS516XT2uyjAEypoOYf4CTxzSqPzIK3r7l0WgOkA49ggmnZ5rihu+2nQC03d43zfQNtVVbxTmyUvn2moGJd0SccL1OJ60uyDQeN719T9T3TcjPE+YMFQawpnKfXjzs=
before_install:
- echo 'deb https://download.docker.com/linux/ubuntu xenial stable' > /tmp/docker.list
- sudo cp /tmp/docker.list /etc/apt/sources.list.d/docker.list
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0EBFCD88
- sudo apt-get update
- apt-cache policy docker-ce || true
- sudo apt-get install -y --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
docker-ce=${DOCKER_APP_VERSION}
- sudo iptables -L DOCKER || sudo iptables -N DOCKER
- sudo apt-get install -y curl ruby-dev build-essential python-dev
#- sudo pip install pip
#- sudo pip install docker-compose
- gem install marathon_deploy
- docker pull ubuntu:16.04
- docker ps
- "./build-docker-image.sh"
- export IP=$(/sbin/ifconfig ens4 | awk '/inet addr:/{gsub(/.*:/,"",$2);print $2;exit}')
- echo $IP
- export START_TRAEFIK=true
- export ZOOKEEPER_HOSTS=${IP}:2181
- "./generate_yml.sh"
- cat docker-compose.yml
- sudo netstat -tulpen
- docker --version
- docker images
- docker-compose up -d
script:
- docker ps
- sleep 30
- curl -s http://${IP}:8080/v2/leader
- curl -s http://${IP}:8080/v2/info
- curl -I -s http://${IP}:5050/master/health
- curl -s http://${IP}:5050/system/stats.json
- docker exec -ti panteras_panteras_1 supervisorctl status || true
- cd examples/SimpleWebappPython
- "./test_service.sh"
- cd -
- cd examples/SmoothWebappPython
- "./test_service.sh"
- docker exec -ti panteras_panteras_1 supervisorctl status || true