Merge pull request #1316 from dmcgowan/fix-janky-integration-tests
Fix broken daemon startup with master
This commit is contained in:
commit
f277c660ae
3 changed files with 12 additions and 4 deletions
|
@ -38,13 +38,13 @@ docker pull $INTEGRATION_IMAGE
|
||||||
ID=$(docker run -d -it --privileged $volumeMount $dockerMount \
|
ID=$(docker run -d -it --privileged $volumeMount $dockerMount \
|
||||||
-v ${DISTRIBUTION_ROOT}:/go/src/github.com/docker/distribution \
|
-v ${DISTRIBUTION_ROOT}:/go/src/github.com/docker/distribution \
|
||||||
-e "DOCKER_GRAPHDRIVER=$DOCKER_GRAPHDRIVER" \
|
-e "DOCKER_GRAPHDRIVER=$DOCKER_GRAPHDRIVER" \
|
||||||
-e "EXEC_DRIVER=$EXEC_DRIVER" \
|
|
||||||
${INTEGRATION_IMAGE} \
|
${INTEGRATION_IMAGE} \
|
||||||
./run_engine.sh)
|
./run_engine.sh)
|
||||||
|
|
||||||
# Stop container on exit
|
# Stop container on exit
|
||||||
trap "docker rm -f -v $ID" EXIT
|
trap "docker rm -f -v $ID" EXIT
|
||||||
|
|
||||||
|
|
||||||
# Wait for it to become reachable.
|
# Wait for it to become reachable.
|
||||||
tries=10
|
tries=10
|
||||||
until docker exec "$ID" docker version &> /dev/null; do
|
until docker exec "$ID" docker version &> /dev/null; do
|
||||||
|
|
|
@ -11,5 +11,13 @@ echo "$IP localregistry" >> /etc/hosts
|
||||||
|
|
||||||
sh install_certs.sh localregistry
|
sh install_certs.sh localregistry
|
||||||
|
|
||||||
docker --daemon --log-level=panic \
|
DOCKER_VERSION=$(docker --version | cut -d ' ' -f3 | cut -d ',' -f1)
|
||||||
--storage-driver="$DOCKER_GRAPHDRIVER" --exec-driver="$EXEC_DRIVER"
|
major=$(echo "$DOCKER_VERSION"| cut -d '.' -f1)
|
||||||
|
minor=$(echo "$DOCKER_VERSION"| cut -d '.' -f2)
|
||||||
|
|
||||||
|
daemonOpts="daemon"
|
||||||
|
if [ $major -le 1 ] && [ $minor -lt 9 ]; then
|
||||||
|
daemonOpts="--daemon"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker $daemonOpts --log-level=debug --storage-driver="$DOCKER_GRAPHDRIVER"
|
||||||
|
|
|
@ -23,7 +23,7 @@ fi
|
||||||
|
|
||||||
# Released versions
|
# Released versions
|
||||||
|
|
||||||
versions="1.6.0 1.6.1 1.7.0 1.7.1"
|
versions="1.6.1 1.7.1 1.8.3 1.9.1"
|
||||||
|
|
||||||
for v in $versions; do
|
for v in $versions; do
|
||||||
echo "Extracting Docker $v from dind image"
|
echo "Extracting Docker $v from dind image"
|
||||||
|
|
Loading…
Reference in a new issue