Dockerfile.dapper 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM ubuntu:16.04
  2. RUN apt-get update && \
  3. apt-get -y install locales sudo vim less curl wget git rsync build-essential isolinux xorriso gccgo \
  4. libblkid-dev libmount-dev libselinux1-dev cpio genisoimage qemu-kvm python-pip ca-certificates pkg-config tox
  5. COPY ./scripts/install-libs.sh /tmp/
  6. RUN /tmp/install-libs.sh
  7. RUN wget -O - https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz | tar -xz -C /usr/local
  8. RUN wget -O /usr/local/bin/docker -L https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 && \
  9. chmod +x /usr/local/bin/docker
  10. ENV PATH /usr/local/go/bin:$PATH
  11. RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
  12. ENV GOPATH /go
  13. ENV PATH /go/bin:$PATH
  14. ENV DAPPER_SOURCE /go/src/github.com/rancher/docker-from-scratch
  15. ENV DAPPER_OUTPUT ""
  16. ENV DAPPER_DOCKER_SOCKET true
  17. ENV DAPPER_ENV NO_TEST ARCH
  18. RUN mkdir -p ${DAPPER_SOURCE}/assets && ln -s ${DAPPER_SOURCE} /source
  19. WORKDIR ${DAPPER_SOURCE}/assets
  20. RUN wget https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.4.0/base-files_amd64.tar.gz && \
  21. wget https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.4.0/base-files_arm.tar.gz && \
  22. wget https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.4.0/base-files_arm64.tar.gz
  23. ENV DOCKER_VERSION=1.11.2 DOCKER_PATCH_VERSION=v1.11.2-ros1
  24. ENV VERSION=v${DOCKER_VERSION}-2
  25. RUN wget -O docker-${DOCKER_VERSION}_amd64.tgz -L https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz && \
  26. wget -L https://github.com/rancher/docker/releases/download/${DOCKER_PATCH_VERSION}/docker-${DOCKER_VERSION}_arm.tgz && \
  27. wget -L https://github.com/rancher/docker/releases/download/${DOCKER_PATCH_VERSION}/docker-${DOCKER_VERSION}_arm64.tgz
  28. WORKDIR ${DAPPER_SOURCE}
  29. CMD ./scripts/ci