2015-05-28 05:36:24 +00:00
|
|
|
FROM debian:jessie
|
|
|
|
|
2015-05-28 22:55:04 +00:00
|
|
|
MAINTAINER Docker Distribution Team <distribution@docker.com>
|
|
|
|
|
2015-05-28 05:36:24 +00:00
|
|
|
# compile and runtime deps
|
|
|
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
# For DIND
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
iptables \
|
|
|
|
procps \
|
|
|
|
e2fsprogs \
|
|
|
|
xz-utils \
|
|
|
|
# For build
|
|
|
|
build-essential \
|
|
|
|
file \
|
|
|
|
git \
|
|
|
|
net-tools \
|
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Install Docker
|
2015-08-04 18:49:55 +00:00
|
|
|
ENV VERSION 1.7.1
|
2015-05-28 05:36:24 +00:00
|
|
|
RUN curl -L -o /usr/local/bin/docker https://test.docker.com/builds/Linux/x86_64/docker-${VERSION} \
|
|
|
|
&& chmod +x /usr/local/bin/docker
|
|
|
|
|
|
|
|
# Install DIND
|
|
|
|
RUN curl -L -o /dind https://raw.githubusercontent.com/docker/docker/master/hack/dind \
|
|
|
|
&& chmod +x /dind
|
|
|
|
|
|
|
|
# Install bats
|
|
|
|
RUN cd /usr/local/src/ \
|
|
|
|
&& git clone https://github.com/sstephenson/bats.git \
|
|
|
|
&& cd bats \
|
|
|
|
&& ./install.sh /usr/local
|
|
|
|
|
|
|
|
# Install docker-compose
|
2015-08-04 20:28:03 +00:00
|
|
|
RUN curl -L https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose \
|
2015-05-28 05:36:24 +00:00
|
|
|
&& chmod +x /usr/local/bin/docker-compose
|
|
|
|
|
|
|
|
RUN mkdir -p /go/src/github.com/docker/distribution
|
|
|
|
WORKDIR /go/src/github.com/docker/distribution/contrib/docker-integration
|
|
|
|
|
|
|
|
VOLUME /var/lib/docker
|
|
|
|
|
|
|
|
ENTRYPOINT ["/dind"]
|