From 0e3545e04dd235cebb190895827743a742fe0e32 Mon Sep 17 00:00:00 2001 From: RotaruDan Date: Wed, 16 Dec 2015 17:36:04 +0100 Subject: [PATCH] Force docker-compose's version 1.5.0 because of the changes if this issue https://github.com/docker/compose/issues/2327 implemented here https://github.com/docker/compose/pull/2334 --- rage-analytics.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rage-analytics.sh b/rage-analytics.sh index c568b82..f9aadef 100755 --- a/rage-analytics.sh +++ b/rage-analytics.sh @@ -19,7 +19,7 @@ COMPOSE_NET_NAME='rage' # external constants MIN_DOCKER_VERSION='1.9' MIN_COMPOSE_VERSION='1.5' -INSTALL_COMPOSE_VERSION='1.5.1' +INSTALL_COMPOSE_VERSION='1.5.0' DOCKER_SH_URL='https://get.docker.com/' COMPOSE_BASE_URL='https://github.com/docker/compose/releases/download/' COMPOSE_INSTALL_TARGET='/usr/local/bin/docker-compose' @@ -288,6 +288,15 @@ function install() { # start containers function start() { + + composeVersion=$(docker-compose -v) + IFS=', ' read -r -a array <<< "$composeVersion" + + if [[ "${array[2]}" != "$INSTALL_COMPOSE_VERSION" ]] ; then + echo " docker-compose version $INSTALL_COMPOSE_VERSION required, available ${array[2]}" + exit 0 + fi + recho " Launching images" recho "-------------------------------"