forked from shazChaudhry/docker-elastic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (24 loc) · 778 Bytes
/
.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
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker version
services:
- docker
before_script:
# https://www.elastic.co/guide/en/elasticsearch/reference/5.0/vm-max-map-count.html
- sudo sysctl -w vm.max_map_count=262144
script:
- docker swarm init
- docker node ls
- chmod +x *.sh
- ./deployStack.sh
- sleep 180
- docker run -d --rm --name jenkins -p 8080:8080 jenkinsci/blueocean
- sleep 120
after_script:
- docker stack services elastic
- docker stack ps elastic
#List all Elasticsearch Indices. One entry sould be for logstash containing console logs for Jenkins
- curl -XGET -u elastic:changeme '127.0.0.1:9200/_cat/indices?v&pretty'
- ./removeStack.sh