Skip to content

Commit

Permalink
Merge pull request #6 from docksal/develop
Browse files Browse the repository at this point in the history
Release 1.2.2
  • Loading branch information
lmakarov committed Mar 29, 2019
2 parents 81460ff + 65cf972 commit 5b74da6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.8
FROM alpine:3.9

RUN apk add --no-cache \
bash \
Expand Down
22 changes: 9 additions & 13 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5b74da6

Please sign in to comment.