Dockerfile.dapper 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. RUN wget -O - https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz | tar -xz -C /usr/local
  6. RUN wget -O /usr/local/bin/docker -L https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 && \
  7. chmod +x /usr/local/bin/docker
  8. ENV PATH /usr/local/go/bin:$PATH
  9. RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
  10. ENV GOPATH /go
  11. ENV PATH /go/bin:$PATH
  12. ENV DAPPER_SOURCE /go/src/github.com/rancher/docker-from-scratch
  13. ENV DAPPER_OUTPUT ""
  14. ENV DAPPER_DOCKER_SOCKET true
  15. ENV DAPPER_ENV NO_TEST ARCH
  16. RUN mkdir -p ${DAPPER_SOURCE}/assets && ln -s ${DAPPER_SOURCE} /source
  17. WORKDIR ${DAPPER_SOURCE}/assets
  18. RUN wget https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.4.0/base-files_amd64.tar.gz && \
  19. wget https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.4.0/base-files_arm.tar.gz && \
  20. wget https://github.com/rancher/docker-from-scratch/releases/download/bin-v0.4.0/base-files_arm64.tar.gz
  21. ENV DOCKER_VERSION=1.11.1 DOCKER_PATCH_VERSION=v1.11.1-ros4
  22. RUN wget -O docker-${DOCKER_VERSION}_amd64.tgz -L https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz && \
  23. wget -L https://github.com/rancher/docker/releases/download/${DOCKER_PATCH_VERSION}/docker-${DOCKER_VERSION}_arm.tgz && \
  24. wget -L https://github.com/rancher/docker/releases/download/${DOCKER_PATCH_VERSION}/docker-${DOCKER_VERSION}_arm64.tgz
  25. WORKDIR ${DAPPER_SOURCE}
  26. COPY ./scripts/install-libs.sh /tmp/
  27. RUN /tmp/install-libs.sh
  28. CMD ./scripts/ci