mirror of
https://github.com/docker/cli.git
synced 2026-11-06 13:10:41 -04:00
Add a "master" engine-version to the e2e matrix to catch regressions against the upcoming engine release before it reaches an rc. There is no "master" dind image, so just copy the engine binary from the moby/moby-bin:master image and put it into the latest dind image. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
16 lines
511 B
Docker
16 lines
511 B
Docker
ARG ENGINE_VERSION
|
|
# ENGINE_SOURCE is "dind" or "moby-bin" (moby/moby-bin:master).
|
|
ARG ENGINE_SOURCE=dind
|
|
|
|
FROM docker:${ENGINE_VERSION}-dind AS engine-dind
|
|
|
|
# moby/moby-bin only has the daemon binaries.
|
|
FROM docker:dind AS engine-moby-bin
|
|
COPY --link --from=moby/moby-bin:master / /usr/local/bin/
|
|
|
|
FROM engine-${ENGINE_SOURCE}
|
|
|
|
# Trust the tlsregistry CA so dockerd connects without --insecure-registry.
|
|
COPY registry/certs/ca.crt /usr/local/share/ca-certificates/tlsregistry-ca.crt
|
|
RUN update-ca-certificates
|