Travis integration (#183)

This commit is contained in:
ivanrome 2017-10-15 18:14:21 +02:00 committed by Antoine Cotten
parent e8c1fc2d40
commit 0a7ec5eca4
2 changed files with 37 additions and 1 deletions

34
.travis.yml Normal file
View File

@ -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/

View File

@ -1,6 +1,8 @@
# Docker ELK stack # Docker ELK stack
[![Join the chat at https://gitter.im/deviantony/docker-elk](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/deviantony/docker-elk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Elastic Stack version](https://img.shields.io/badge/ELK-5.6.3-blue.svg?style=flat)](https://github.com/deviantony/docker-elk/issues/182) [![Join the chat at https://gitter.im/deviantony/docker-elk](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/deviantony/docker-elk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Elastic Stack version](https://img.shields.io/badge/ELK-5.6.3-blue.svg?style=flat)](https://github.com/deviantony/docker-elk/issues/182)
[![Build Status](https://api.travis-ci.org/deviantony/docker-elk.svg?branch=master)](https://travis-ci.org/deviantony/docker-elk)
Run the latest version of the ELK (Elasticsearch, Logstash, Kibana) stack with Docker and Docker Compose. Run the latest version of the ELK (Elasticsearch, Logstash, Kibana) stack with Docker and Docker Compose.