Run tests using Docker-in-Docker so we can test multiple versions

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-02-23 11:01:37 +00:00
commit 74440b2f92
5 changed files with 147 additions and 4 deletions

View file

@ -1,5 +1,18 @@
FROM debian:wheezy
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
RUN apt-get update -qq
# Compose dependencies
RUN apt-get install -qqy python python-pip python-dev git
# Test dependencies
RUN apt-get install -qqy apt-transport-https ca-certificates curl lxc iptables
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-1.3.3 > /usr/local/bin/docker-1.3.3 && chmod +x /usr/local/bin/docker-1.3.3
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-1.4.1 > /usr/local/bin/docker-1.4.1 && chmod +x /usr/local/bin/docker-1.4.1
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-1.5.0 > /usr/local/bin/docker-1.5.0 && chmod +x /usr/local/bin/docker-1.5.0
RUN apt-get clean
RUN useradd -d /home/user -m -s /bin/bash user
WORKDIR /code/