2015-02-28 05:37:25 +00:00
|
|
|
# docker build -t docker:simple -f Dockerfile.simple .
|
|
|
|
# docker run --rm docker:simple hack/make.sh dynbinary
|
2015-03-10 00:24:49 +00:00
|
|
|
# docker run --rm --privileged docker:simple hack/dind hack/make.sh test-unit
|
|
|
|
# docker run --rm --privileged -v /var/lib/docker docker:simple hack/dind hack/make.sh dynbinary test-integration-cli
|
2015-02-28 05:37:25 +00:00
|
|
|
|
|
|
|
# This represents the bare minimum required to build and test Docker.
|
|
|
|
|
|
|
|
FROM debian:jessie
|
|
|
|
|
|
|
|
# compile and runtime deps
|
|
|
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
|
|
|
|
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
btrfs-tools \
|
2015-03-18 05:08:17 +00:00
|
|
|
curl \
|
2015-02-28 05:37:25 +00:00
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
golang \
|
|
|
|
libdevmapper-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
\
|
|
|
|
ca-certificates \
|
|
|
|
e2fsprogs \
|
|
|
|
iptables \
|
|
|
|
procps \
|
2015-11-11 22:29:02 +00:00
|
|
|
xfsprogs \
|
2015-02-28 05:37:25 +00:00
|
|
|
xz-utils \
|
|
|
|
\
|
2015-03-10 00:24:49 +00:00
|
|
|
aufs-tools \
|
2015-02-28 05:37:25 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-03-18 18:50:19 +00:00
|
|
|
# Install runc
|
|
|
|
ENV RUNC_COMMIT bbde9c426ff363d813b8722f0744115c13b408b6
|
|
|
|
RUN set -x \
|
|
|
|
&& export GOPATH="$(mktemp -d)" \
|
|
|
|
&& git clone git://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc" \
|
|
|
|
&& cd "$GOPATH/src/github.com/opencontainers/runc" \
|
|
|
|
&& git checkout -q "$RUNC_COMMIT" \
|
|
|
|
&& make BUILDTAGS="seccomp apparmor selinux" && make install
|
|
|
|
|
|
|
|
# Install containerd
|
|
|
|
ENV CONTAINERD_COMMIT 7146b01a3d7aaa146414cdfb0a6c96cfba5d9091
|
|
|
|
RUN set -x \
|
|
|
|
&& export GOPATH="$(mktemp -d)" \
|
|
|
|
&& git clone git://github.com/docker/containerd.git "$GOPATH/src/github.com/docker/containerd" \
|
|
|
|
&& cd "$GOPATH/src/github.com/docker/containerd" \
|
|
|
|
&& git checkout -q "$CONTAINERD_COMMIT" \
|
|
|
|
&& make && make install
|
|
|
|
|
2015-02-28 05:37:25 +00:00
|
|
|
ENV AUTO_GOPATH 1
|
|
|
|
WORKDIR /usr/src/docker
|
|
|
|
COPY . /usr/src/docker
|