Add $DOCKER_VERSION to specify docker version
This commit is contained in:
4
Makefile
4
Makefile
@@ -41,7 +41,11 @@ docker: aufs
|
|||||||
curl https://get.docker.io/gpg | apt-key add -
|
curl https://get.docker.io/gpg | apt-key add -
|
||||||
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
|
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
|
||||||
apt-get update
|
apt-get update
|
||||||
|
ifdef DOCKER_VERSION
|
||||||
|
apt-get install -y lxc-docker-${DOCKER_VERSION}
|
||||||
|
else
|
||||||
apt-get install -y lxc-docker
|
apt-get install -y lxc-docker
|
||||||
|
endif
|
||||||
sleep 2 # give docker a moment i guess
|
sleep 2 # give docker a moment i guess
|
||||||
|
|
||||||
aufs:
|
aufs:
|
||||||
|
|||||||
Reference in New Issue
Block a user