Skip to content

Commit

Permalink
ci: Use newer curl version with exponential backoff
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Dec 17, 2019
1 parent 7fc2144 commit 8dafca6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ before_script:
# Build images
- docker-compose build

# Pull buildpack image (curl 7.52.0+)
- docker pull buildpack-deps:artful-curl
# Pull curl image (curl 7.52.0+)
- docker pull curlimages/curl

script:
# Compose
Expand Down
5 changes: 1 addition & 4 deletions .travis/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu
set -o pipefail

shopt -s expand_aliases
alias curl="docker run --rm --net=host buildpack-deps:artful-curl curl -s -w '\n'"
alias curl="docker run --rm --net=host curlimages/curl -s -w '\n'"

function log {
echo -e "\n[+] $1\n"
Expand All @@ -13,20 +13,17 @@ function log {
log 'Waiting for Elasticsearch readiness'
curl -D- 'http:https://localhost:9200/' \
--retry 10 \
--retry-delay 5 \
--retry-connrefused \
-u kibanaserver:kibanaserver

log 'Waiting for Kibana readiness'
curl -D- 'http:https://localhost:5601/api/status' \
--retry 10 \
--retry-delay 5 \
--retry-connrefused

log 'Waiting for Logstash readiness'
curl -D- 'http:https://localhost:9600/_node/pipelines/main?pretty' \
--retry 10 \
--retry-delay 5 \
--retry-connrefused

log 'Creating Logstash index pattern in Kibana'
Expand Down

0 comments on commit 8dafca6

Please sign in to comment.