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

Commit

Permalink
Use CLI source from the docker-ce repo
Browse files Browse the repository at this point in the history
Signed-off-by: Joffrey F <[email protected]>
  • Loading branch information
shin- committed Dec 28, 2017
1 parent b348334 commit 32443a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ ARG VBOX_VERSION
ARG VBOX_REV
ARG MIXPANEL_TOKEN

RUN mkdir -p /go/src/github.com/docker/cli
WORKDIR /go/src/github.com/docker/cli
RUN git clone https://github.com/docker/cli.git . && git checkout $DOCKER_CLI_COMMIT
RUN VERSION=$DOCKER_VERSION ./scripts/build/windows

RUN dpkg --add-architecture i386
RUN sed -i "s/main/main contrib non-free/" /etc/apt/sources.list
RUN apt-get update && apt-get install -yq wine curl unrar unzip
Expand All @@ -34,6 +29,18 @@ RUN cd /innosetup && \

ENV GIT_VERSION 2.9.0

# Build CLI binary
RUN mkdir -p /go/src/github.com/docker/

RUN git clone https://github.com/docker/docker-ce.git /docker-ce && \
cd /docker-ce && \
git checkout $DOCKER_CLI_COMMIT && \
cp -R components/cli /go/src/github.com/docker/

WORKDIR /go/src/github.com/docker/cli
RUN VERSION=$DOCKER_VERSION GITCOMMIT=$(echo $DOCKER_CLI_COMMIT | cut -c 1-7) ./scripts/build/windows

# Assemble bundle
RUN mkdir /bundle

WORKDIR /bundle
Expand Down
2 changes: 1 addition & 1 deletion versions
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DOCKER_RELEASE_STAGE=stable
INSTALLER_VERSION=17.12.0-ce
DOCKER_VERSION=17.12.0-ce
DOCKER_CLI_COMMIT=ace5417954ec908d862d59e992c8d77685366eab
DOCKER_CLI_COMMIT=c97c6d62c26c1da407e3086f0b5d3d866ed308bc
DOCKER_COMPOSE_VERSION=1.18.0
DOCKER_MACHINE_VERSION=0.13.0
KITEMATIC_VERSION=0.17.2
Expand Down

0 comments on commit 32443a9

Please sign in to comment.