Skip to content

Commit eb90b88

Browse files
committed
[DEVENV] Install docker-compose v1.8.1 locally
We need docker-compose v1.8.1 but baseimage v0.2.1 includes v1.5.2. We will eventually be migrating away from the vagrant baseimage anyway, so we are going to pretend docker-compose is not installed regardless of whether it might be or not. We will instead plow it over with the release that we require. Users will need to vagrant destroy+up after this patch Change-Id: I7ae5eb87953466fadf1a7b5fb272633c35f67898 Signed-off-by: Gregory Haskins <[email protected]>
1 parent 7e7c7bb commit eb90b88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

devenv/setup.sh

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ case "${DOCKER_STORAGE_BACKEND}" in
5959
exit 1;;
6060
esac
6161

62+
# Install docker-compose
63+
curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
64+
chmod +x /usr/local/bin/docker-compose
65+
6266
# Configure docker
6367
DOCKER_OPTS="-s=${DOCKER_STORAGE_BACKEND_STRING} -r=true --api-cors-header='*' -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock ${DOCKER_OPTS}"
6468
sed -i.bak '/^DOCKER_OPTS=/{h;s|=.*|=\"'"${DOCKER_OPTS}"'\"|};${x;/^$/{s||DOCKER_OPTS=\"'"${DOCKER_OPTS}"'\"|;H};x}' /etc/default/docker

0 commit comments

Comments
 (0)