Skip to content
This repository was archived by the owner on Sep 26, 2021. It is now read-only.

Commit 32443a9

Browse files
committed
Use CLI source from the docker-ce repo
Signed-off-by: Joffrey F <[email protected]>
1 parent b348334 commit 32443a9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

Dockerfile.windows

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ ARG VBOX_VERSION
1313
ARG VBOX_REV
1414
ARG MIXPANEL_TOKEN
1515

16-
RUN mkdir -p /go/src/github.com/docker/cli
17-
WORKDIR /go/src/github.com/docker/cli
18-
RUN git clone https://github.com/docker/cli.git . && git checkout $DOCKER_CLI_COMMIT
19-
RUN VERSION=$DOCKER_VERSION ./scripts/build/windows
20-
2116
RUN dpkg --add-architecture i386
2217
RUN sed -i "s/main/main contrib non-free/" /etc/apt/sources.list
2318
RUN apt-get update && apt-get install -yq wine curl unrar unzip
@@ -34,6 +29,18 @@ RUN cd /innosetup && \
3429

3530
ENV GIT_VERSION 2.9.0
3631

32+
# Build CLI binary
33+
RUN mkdir -p /go/src/github.com/docker/
34+
35+
RUN git clone https://github.com/docker/docker-ce.git /docker-ce && \
36+
cd /docker-ce && \
37+
git checkout $DOCKER_CLI_COMMIT && \
38+
cp -R components/cli /go/src/github.com/docker/
39+
40+
WORKDIR /go/src/github.com/docker/cli
41+
RUN VERSION=$DOCKER_VERSION GITCOMMIT=$(echo $DOCKER_CLI_COMMIT | cut -c 1-7) ./scripts/build/windows
42+
43+
# Assemble bundle
3744
RUN mkdir /bundle
3845

3946
WORKDIR /bundle

versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
DOCKER_RELEASE_STAGE=stable
22
INSTALLER_VERSION=17.12.0-ce
33
DOCKER_VERSION=17.12.0-ce
4-
DOCKER_CLI_COMMIT=ace5417954ec908d862d59e992c8d77685366eab
4+
DOCKER_CLI_COMMIT=c97c6d62c26c1da407e3086f0b5d3d866ed308bc
55
DOCKER_COMPOSE_VERSION=1.18.0
66
DOCKER_MACHINE_VERSION=0.13.0
77
KITEMATIC_VERSION=0.17.2

0 commit comments

Comments
 (0)