From 9b2aab3fc85ab1d8cf7479b153e54d5dcceb7886 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 14 Jan 2016 13:51:30 -0800 Subject: [PATCH] Switch "syscall-test" image from "debian:jessie" to "buildpack-deps:jessie" so that "gcc" is already included This results in a significant time savings during repeated builds (since we don't have to re-download gcc for every test run). Signed-off-by: Andrew "Tianon" Page --- Dockerfile | 3 ++- Dockerfile.armhf | 3 ++- Dockerfile.ppc64le | 3 ++- Dockerfile.s390x | 3 ++- contrib/syscall-test/Dockerfile | 8 +------- hack/make/.ensure-frozen-images | 1 + 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73820bdd2f..68b122e33b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -213,8 +213,9 @@ RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker # Get useful and necessary Hub images so we can "docker load" locally instead of pulling COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/ RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ + buildpack-deps:jessie@sha256:25785f89240fbcdd8a74bdaf30dd5599a9523882c6dfc567f2e9ef7cf6f79db6 \ busybox:latest@sha256:e4f93f6ed15a0cdd342f5aae387886fba0ab98af0a102da6276eaf24d6e6ade0 \ - debian:jessie@sha256:24a900d1671b269d6640b4224e7b63801880d8e3cb2bcbfaa10a5dddcf4469ed \ + debian:jessie@sha256:f968f10b4b523737e253a97eac59b0d1420b5c19b69928d35801a6373ffe330e \ hello-world:latest@sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7 # see also "hack/make/.ensure-frozen-images" (which needs to be updated any time this list is) diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 6ca4430e0e..1bc868f6a0 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -174,8 +174,9 @@ RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker # Get useful and necessary Hub images so we can "docker load" locally instead of pulling COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/ RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ + armhf/buildpack-deps:jessie@sha256:ca6cce8e5bf5c952129889b5cc15cd6aa8d995d77e55e3749bbaadae50e476cb \ armhf/busybox:latest@sha256:d98a7343ac750ffe387e3d514f8521ba69846c216778919b01414b8617cfb3d4 \ - armhf/debian:jessie@sha256:094687129906d2a43cb4e5946ea379b5619c9ca8e4e27b3ba28b40f237a4150c \ + armhf/debian:jessie@sha256:4a2187483f04a84f9830910fe3581d69b3c985cc045d9f01d8e2f3795b28107b \ armhf/hello-world:latest@sha256:161dcecea0225975b2ad5f768058212c1e0d39e8211098666ffa1ac74cfb7791 # see also "hack/make/.ensure-frozen-images" (which needs to be updated any time this list is) diff --git a/Dockerfile.ppc64le b/Dockerfile.ppc64le index 1c3804bba2..69d9d99fb4 100644 --- a/Dockerfile.ppc64le +++ b/Dockerfile.ppc64le @@ -152,8 +152,9 @@ RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker # Get useful and necessary Hub images so we can "docker load" locally instead of pulling COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/ RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ + ppc64le/buildpack-deps:jessie@sha256:902bfe4ef1389f94d143d64516dd50a2de75bca2e66d4a44b1d73f63ddf05dda \ ppc64le/busybox:latest@sha256:38bb82085248d5a3c24bd7a5dc146f2f2c191e189da0441f1c2ca560e3fc6f1b \ - ppc64le/debian:jessie@sha256:74e06e6506b23cf8abd00250782838b2d19910824d8e7eab3d14dc1845ea10c6 \ + ppc64le/debian:jessie@sha256:412845f51b6ab662afba71bc7a716e20fdb9b84f185d180d4c7504f8a75c4f91 \ ppc64le/hello-world:latest@sha256:186a40a9a02ca26df0b6c8acdfb8ac2f3ae6678996a838f977e57fac9d963974 # see also "hack/make/.ensure-frozen-images" (which needs to be updated any time this list is) diff --git a/Dockerfile.s390x b/Dockerfile.s390x index ce335c973b..fdee716c9e 100644 --- a/Dockerfile.s390x +++ b/Dockerfile.s390x @@ -152,8 +152,9 @@ RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker # Get useful and necessary Hub images so we can "docker load" locally instead of pulling COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/ RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images \ + s390x/buildpack-deps:jessie@sha256:4d1381224acaca6c4bfe3604de3af6972083a8558a99672cb6989c7541780099 \ s390x/busybox:latest@sha256:dd61522c983884a66ed72d60301925889028c6d2d5e0220a8fe1d9b4c6a4f01b \ - s390x/debian:jessie@sha256:3c478e199f60c877c00306356267798d32727dc3cd38512cdb4b060659ea9d20 \ + s390x/debian:jessie@sha256:b74c863400909eff3c5e196cac9bfd1f6333ce47aae6a38398d87d5875da170a \ s390x/hello-world:latest@sha256:780d80b3a7677c3788c0d5cd9168281320c8d4a6d9183892d8ee5cdd610f5699 # see also "hack/make/.ensure-frozen-images" (which needs to be updated any time this list is) diff --git a/contrib/syscall-test/Dockerfile b/contrib/syscall-test/Dockerfile index eb3e92c3a0..8cd6bebf3d 100644 --- a/contrib/syscall-test/Dockerfile +++ b/contrib/syscall-test/Dockerfile @@ -1,10 +1,4 @@ -FROM debian:jessie - -RUN apt-get update && apt-get install -y \ - gcc \ - libc6-dev \ - --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* +FROM buildpack-deps:jessie COPY . /usr/src/ diff --git a/hack/make/.ensure-frozen-images b/hack/make/.ensure-frozen-images index 6e0036c986..761780a2f7 100644 --- a/hack/make/.ensure-frozen-images +++ b/hack/make/.ensure-frozen-images @@ -3,6 +3,7 @@ set -e # image list should match what's in the Dockerfile (minus the explicit images IDs) images=( + buildpack-deps:jessie busybox:latest debian:jessie hello-world:latest