@@ -73,17 +73,6 @@ RUN set -x \
7373 esac \
7474 && rm -rf "$GOPATH"
7575
76-
77-
78- FROM base AS docker-py
79- # Get the "docker-py" source so we can run their integration tests
80- ENV DOCKER_PY_COMMIT ac922192959870774ad8428344d9faa0555f7ba6
81- RUN git clone https://github.com/docker/docker-py.git /build \
82- && cd /build \
83- && git checkout -q $DOCKER_PY_COMMIT
84-
85-
86-
8776FROM base AS swagger
8877# Install go-swagger for validating swagger.yaml
8978ENV GO_SWAGGER_COMMIT c28258affb0b6251755d92489ef685af8d4ff3eb
@@ -94,7 +83,6 @@ RUN set -x \
9483 && go build -o /build/swagger github.com/go-swagger/go-swagger/cmd/swagger \
9584 && rm -rf "$GOPATH"
9685
97-
9886FROM base AS frozen-images
9987RUN apt-get update && apt-get install -y jq ca-certificates --no-install-recommends
10088# Get useful and necessary Hub images so we can "docker load" locally instead of pulling
@@ -181,6 +169,12 @@ COPY hack/dockerfile/install/install.sh ./install.sh
181169COPY hack/dockerfile/install/$INSTALL_BINARY_NAME.installer ./
182170RUN PREFIX=/build ./install.sh $INSTALL_BINARY_NAME
183171
172+ FROM base AS gotestsum
173+ ENV INSTALL_BINARY_NAME=gotestsum
174+ COPY hack/dockerfile/install/install.sh ./install.sh
175+ COPY hack/dockerfile/install/$INSTALL_BINARY_NAME.installer ./
176+ RUN PREFIX=/build ./install.sh $INSTALL_BINARY_NAME
177+
184178FROM dev-base AS dockercli
185179ENV INSTALL_BINARY_NAME=dockercli
186180COPY hack/dockerfile/install/install.sh ./install.sh
@@ -228,25 +222,14 @@ RUN apt-get update && apt-get install -y \
228222 jq \
229223 libcap2-bin \
230224 libdevmapper-dev \
231- # libffi-dev and libssl-dev appear to be required for compiling paramiko on s390x/ppc64le
232- libffi-dev \
233- libssl-dev \
234225 libudev-dev \
235226 libsystemd-dev \
236227 binutils-mingw-w64 \
237228 g++-mingw-w64-x86-64 \
238229 net-tools \
239230 pigz \
240- python-backports.ssl-match-hostname \
241- python-dev \
242- # python-cffi appears to be required for compiling paramiko on s390x/ppc64le
243- python-cffi \
244- python-mock \
245- python-pip \
246- python-requests \
247- python-setuptools \
248- python-websocket \
249- python-wheel \
231+ python3-pip \
232+ python3-setuptools \
250233 thin-provisioning-tools \
251234 vim \
252235 vim-common \
@@ -258,9 +241,13 @@ RUN apt-get update && apt-get install -y \
258241 libnet1 \
259242 libnl-3-200 \
260243 --no-install-recommends
244+
245+ RUN pip3 install yamllint==1.16.0
246+
261247COPY --from=swagger /build/swagger* /usr/local/bin/
262248COPY --from=frozen-images /build/ /docker-frozen-images
263249COPY --from=gometalinter /build/ /usr/local/bin/
250+ COPY --from=gotestsum /build/ /usr/local/bin/
264251COPY --from=tomlv /build/ /usr/local/bin/
265252COPY --from=vndr /build/ /usr/local/bin/
266253COPY --from=tini /build/ /usr/local/bin/
@@ -270,16 +257,6 @@ COPY --from=proxy /build/ /usr/local/bin/
270257COPY --from=dockercli /build/ /usr/local/cli
271258COPY --from=registry /build/registry* /usr/local/bin/
272259COPY --from=criu /build/ /usr/local/
273- COPY --from=docker-py /build/ /docker-py
274- # TODO: This is for the docker-py tests, which shouldn't really be needed for
275- # this image, but currently CI is expecting to run this image. This should be
276- # split out into a separate image, including all the `python-*` deps installed
277- # above.
278- RUN cd /docker-py \
279- && pip install docker-pycreds==0.4.0 \
280- && pip install paramiko==2.4.2 \
281- && pip install yamllint==1.5.0 \
282- && pip install -r test-requirements.txt
283260COPY --from=rootlesskit /build/ /usr/local/bin/
284261COPY --from=djs55/vpnkit@sha256:e508a17cfacc8fd39261d5b4e397df2b953690da577e2c987a47630cd0c42f8e /vpnkit /usr/local/bin/vpnkit.x86_64
285262
0 commit comments