Travis integration (#183)
This commit is contained in:
parent
e8c1fc2d40
commit
0a7ec5eca4
|
@ -0,0 +1,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/
|
|
@ -1,6 +1,8 @@
|
|||
# Docker ELK stack
|
||||
|
||||
[](https://gitter.im/deviantony/docker-elk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://github.com/deviantony/docker-elk/issues/182)
|
||||
[](https://gitter.im/deviantony/docker-elk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://github.com/deviantony/docker-elk/issues/182)
|
||||
[](https://travis-ci.org/deviantony/docker-elk)
|
||||
|
||||
Run the latest version of the ELK (Elasticsearch, Logstash, Kibana) stack with Docker and Docker Compose.
|
||||
|
||||
|
|
Loading…
Reference in New Issue