From 1c3e45390396809a05062384b67160acdb3ff3fd Mon Sep 17 00:00:00 2001 From: Leonid Makarov Date: Fri, 4 Jan 2019 12:36:03 -0800 Subject: [PATCH 1/3] Switch travis builds to Ubuntu 18.04 (xenial) minimal flavor --- .travis.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 295bf82..634378a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,10 @@ -sudo: required +dist: xenial -language: generic +language: minimal env: DOCKSAL_VERSION: develop -services: - - docker - install: # Install Docksal to have a matching versions of Docker on the build host - curl -fsSL https://get.docksal.io | bash From 4b786158fed4dcc2cbf32b66a53ca0f1115a6311 Mon Sep 17 00:00:00 2001 From: Leonid Makarov Date: Fri, 4 Jan 2019 12:59:55 -0800 Subject: [PATCH 2/3] Updated _healthcheck_wait function in tests --- tests/test.bats | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tests/test.bats b/tests/test.bats index a363870..2bedc45 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -29,8 +29,6 @@ _healthcheck () } # Waits for containers to become healthy -# For reasoning why we are not using `depends_on` `condition` see here: -# https://github.com/docksal/docksal/issues/225#issuecomment-306604063 _healthcheck_wait () { # Wait for cli to become ready by watching its health status @@ -40,17 +38,15 @@ _healthcheck_wait () local elapsed=0 until _healthcheck "$container_name"; do - echo "Waiting for $container_name to become ready..." - sleep "$delay"; - - # Give the container 30s to become ready - elapsed=$((elapsed + delay)) - if ((elapsed > timeout)); then - echo-error "$container_name heathcheck failed" \ - "Container did not enter a healthy state within the expected amount of time." \ - "Try ${yellow}fin restart${NC}" - exit 1 - fi + echo "Waiting for $container_name to become ready..." + sleep "$delay"; + + # Give the container 30s to become ready + elapsed=$((elapsed + delay)) + if ((elapsed > timeout)); then + echo "$container_name heathcheck failed" + exit 1 + fi done return 0 From 8bda33814e399689c3617e82c1ed4b55f27995f0 Mon Sep 17 00:00:00 2001 From: Sergey Zabolotny Date: Mon, 18 Feb 2019 11:18:43 +0200 Subject: [PATCH 3/3] Upgrade to alpine v3.9 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5ea3840..22cacce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.8 +FROM alpine:3.9 RUN set -xe; \ apk add --update --no-cache \