mirror of https://github.com/docker/docs.git
make SWARM_ROOT configurable
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
This commit is contained in:
parent
c28b3a736c
commit
458d83802f
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Root directory of the repository.
|
# Root directory of the repository.
|
||||||
SWARM_ROOT=${BATS_TEST_DIRNAME}/../..
|
SWARM_ROOT=${SWARM_ROOT:-${BATS_TEST_DIRNAME}/../..}
|
||||||
|
|
||||||
# Docker image and version to use for integration tests.
|
# Docker image and version to use for integration tests.
|
||||||
DOCKER_IMAGE=${DOCKER_IMAGE:-aluzzardi/docker}
|
DOCKER_IMAGE=${DOCKER_IMAGE:-aluzzardi/docker}
|
||||||
|
|
@ -33,7 +33,7 @@ function wait_until_reachable() {
|
||||||
echo "Attempt to connect to ${HOSTS[$i]} failed for the $((++attempts)) time" >&2
|
echo "Attempt to connect to ${HOSTS[$i]} failed for the $((++attempts)) time" >&2
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
[[ $attempts -lt $max_attempts ]]
|
[[ $attempts -lt $max_attempts ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Start the swarm manager in background.
|
# Start the swarm manager in background.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue