Skip to content

Commit

Permalink
Force docker-compose's version 1.5.0 because of the changes if this i…
Browse files Browse the repository at this point in the history
…ssue docker/compose#2327 implemented here docker/compose#2334
  • Loading branch information
RotaruDan committed Dec 16, 2015
1 parent 6aa8c78 commit 0e3545e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rage-analytics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 "-------------------------------"

Expand Down

0 comments on commit 0e3545e

Please sign in to comment.