-
Notifications
You must be signed in to change notification settings - Fork 4
/
circle.yml
27 lines (23 loc) · 1.02 KB
/
circle.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
machine:
services:
- docker
dependencies:
pre:
- docker info && docker version
override:
- docker pull million12/elasticsearch:2.3.2
# Run tests
test:
pre:
- docker build -t million12/kibana4 .
override:
# Launch Elasticsearch
- docker run -d -p 9200:9200 --name elasticsearch -e MARVEL_SUPPORT=true million12/elasticsearch:2.3.2
- while true; do if docker logs elasticsearch | grep "http" | grep "publish_address"; then break; else sleep 1; fi done
# Start Kibana
- docker run -d --name kibana -p 5601:5601 --link elasticsearch:elasticsearch.db -e MARVEL_SUPPORT=true million12/kibana4 --elasticsearch http://elasticsearch.db:9200
- while true; do if docker logs kibana | grep "Server running at http://0.0.0.0:5601"; then break; else sleep 1; fi done
# test access to kibana
- curl -sSLi http://localhost:5601 | grep "HTTP/1.1 200 OK"
# test Marvel Plugin installation
- while true; do if docker logs kibana | grep "Marvel Plugin Installed"; then break; else sleep 1; fi done