forked from deviantony/docker-elk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 1002 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
28
29
30
31
32
33
34
sudo: required
language: generic
env:
- DOCKER_COMPOSE_VERSION=1.14.0
install:
# Installing docker
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
# Installing docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
before_script:
# Check docker & docker-compose versions
- docker --version
- docker-compose --version
script:
- docker-compose build
- docker-compose up -d
# Verifications
- sleep 4m
- docker-compose logs
- curl --retry 10 --retry-delay 5 -v http://localhost:9200/
- curl --retry 10 --retry-delay 5 -v http://localhost:5601/