Fixed Travis and CI

This commit is contained in:
Gianluca Arbezzano 2017-08-08 22:10:41 +02:00
parent 21d74312cc
commit 487fcfa26f
No known key found for this signature in database
GPG Key ID: 9505D2809E1D6180
5 changed files with 6 additions and 8 deletions

View File

@ -9,7 +9,7 @@ script:
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=gianarb/orbiter
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ]; then docker build -f Dockerfile -t $REPO . && docker push $REPO; else echo "I only push from master branch." ; fi
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ]; then docker build -f Dockerfile.image -t $REPO . && docker push $REPO; else echo "I only push from master branch." ; fi
env:
global:
- secure: "MN7hNDnx47U9ZCg78GjEGDH5//lLfVzCKnJyPdT4jpYWM05pDB1rPrNwIPZOVuz4XT/x07Oa5M695Pkt61L+yVVfs+AUN6bYwffKWRU0T1dvXzJneB64JQeIGkqyiAHAmrjlpgzOgfB7EcmH4aEFq1HXYCqrvIgAX75D9l/T3xuRXdIzyVLzD3CZZQSZK5cFT37niofMvHoJgmBg5u8FEd2yR2M2LJGbIpXuB3UOn2yqRZHELVg12zhOwgqE+sQtqzBwirx9GObo5x4Nh7AWHIEN/K4BsxMXwZcWSySb0QxRtPpeyiItdDNr62W2MHpyEy//0sJwC5FFhsBzGfSlLpTV+YPrmaXju81JddQVyaB7l6gR3qnwrEywlLBSU3K71FJTHerq23KQV5p50JKA0oYAkKzDtaj0yJAXpFXZbXQq1cOVQidz7Suhi5ZsobI1bzWb5gELCeqCXr0aweTQXqch7Uom4qhIf6aK961F5dvUubzYcgKqbGRBp2F72rls2+9AvnQwUHnPC574sv88oTj0JrDDZoku4vBqSgNkOOICtekBNnksAZLbWasom/+ksqGyZX8qlbf1LLfhwVLqdFgWXrHggO8r8rh8i9MyON0K04hnTHsPHU8+kmbtzZwbXwnVmrJlWnlpolt5CT5XbaPpPwDxvoYsKx0WoYsmZ20="

View File

@ -2,7 +2,7 @@ IP = $(shell docker-machine ip sw1)
init:
./cluster/create.sh
destroy:
docker-machine rm -f sw1 sw2 sw3 sw4
docker-machine rm -f sw1 sw2 sw3
deploy:
docker stack deploy --compose-file stack.yml stack
ps:
@ -12,4 +12,3 @@ scale-up:
curl -X POST -v http://$(IP):8081/handle/autodetect_swarm/stack_micro/up
scale-down:
curl -X POST -v http://$(IP):8081/handle/autodetect_swarm/stack_micro/down

View File

@ -6,7 +6,7 @@ Requirements:
* Docker Machine
* Virtualbox
1. Create a swarm cluster with 4 nodes. One manager and three workers. It uses
1. Create a swarm cluster with 3 nodes. One manager and two workers. It uses
Docker Machine and Virtualbox as provider.
```
make init
@ -27,7 +27,7 @@ make deploy
4. This command shows the current situation. The first table represent the
number of services and how many task are running under a service. You should
see two services. Micro has 10 tasks.
see two services. Micro has 3 tasks.
```
make ps
@ -47,7 +47,7 @@ make scale-down
make ps
```
7. At the end of the test you can clean your envrionment
7. At the end of the test you can clean your environment
```
make destroy

View File

@ -5,7 +5,6 @@ echo "### Init Servers ###"
docker-machine create -d ${provider} sw1 &
docker-machine create -d ${provider} sw2 &
docker-machine create -d ${provider} sw3 &
docker-machine create -d ${provider} sw4 &
wait

View File

@ -29,7 +29,7 @@ services:
- 8000:8000
deploy:
mode: replicated
replicas: 10
replicas: 3
labels: [orbiter=true]
update_config:
parallelism: 2