github.com/mika/distribution@v2.2.2-0.20160108133430-a75790e3d8e0+incompatible/contrib/docker-integration/Dockerfile (about)

     1  FROM debian:jessie
     2  
     3  MAINTAINER Docker Distribution Team <distribution@docker.com>
     4  
     5  # compile and runtime deps
     6  # https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
     7  RUN apt-get update && apt-get install -y --no-install-recommends \
     8          # For DIND
     9          ca-certificates \
    10          curl \
    11          iptables \
    12          procps \
    13          e2fsprogs \
    14          xz-utils \
    15          # For build
    16          build-essential \
    17          file \
    18          git \
    19          net-tools \ 
    20      && apt-get clean && rm -rf /var/lib/apt/lists/*
    21  
    22  # Install Docker
    23  ENV VERSION 1.7.1
    24  RUN curl -L -o /usr/local/bin/docker https://test.docker.com/builds/Linux/x86_64/docker-${VERSION} \
    25      && chmod +x /usr/local/bin/docker
    26  
    27  # Install DIND
    28  RUN curl -L -o /dind https://raw.githubusercontent.com/docker/docker/v1.8.1/hack/dind \
    29      && chmod +x /dind
    30  
    31  # Install bats
    32  RUN cd /usr/local/src/ \
    33      && git clone https://github.com/sstephenson/bats.git \
    34      && cd bats \
    35      && ./install.sh /usr/local
    36  
    37  # Install docker-compose
    38  RUN curl -L https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose \
    39      && chmod +x /usr/local/bin/docker-compose
    40  
    41  RUN mkdir -p /go/src/github.com/docker/distribution
    42  WORKDIR /go/src/github.com/docker/distribution/contrib/docker-integration
    43  
    44  VOLUME /var/lib/docker
    45  
    46  ENTRYPOINT ["/dind"]