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

Commit dce5e4d

Browse files
Fix get.docker.com not working for RCs
Signed-off-by: Nathan LeClaire <[email protected]>
1 parent b497900 commit dce5e4d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile.osx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,15 @@ RUN curl -fsSL -o /vbox.dmg http://download.virtualbox.org/virtualbox/$VBOX_VERS
2929
ENV INSTALLER_VERSION 1.12.2-rc1
3030
ENV DOCKER_VERSION 1.12.2-rc1
3131

32+
# Change this to 'test.docker.com' for RCs and 'get.docker.com' for official
33+
# releases.
34+
ENV DOCKER_ENDPOINT test.docker.com
35+
3236
# Why '--strip-components 3'? The client binary is in usr/local/bin/docker in
3337
# the tar archive. If we extract directly, it will create a usr/local/bin
3438
# subdirectory (not what we want). So we use --strip-components to remove the
3539
# `usr/local/bin` part and drop the bin in the current directory.
36-
RUN curl -fsSL -o dockerbins.tgz "https://get.docker.com/builds/Darwin/x86_64/docker-${DOCKER_VERSION}.tgz" && \
40+
RUN curl -fsSL -o dockerbins.tgz "https://${DOCKER_ENDPOINT}/builds/Darwin/x86_64/docker-${DOCKER_VERSION}.tgz" && \
3741
tar xvf dockerbins.tgz docker/docker --strip-components 1 && \
3842
rm dockerbins.tgz
3943

Dockerfile.windows

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ RUN mkdir /bundle
3232

3333
WORKDIR /bundle
3434

35-
RUN curl -fsSL -o dockerbins.zip "https://get.docker.com/builds/Windows/x86_64/docker-${DOCKER_VERSION}.zip" && \
35+
# Change this to 'test.docker.com' for RCs and 'get.docker.com' for official
36+
# releases.
37+
ENV DOCKER_ENDPOINT test.docker.com
38+
39+
RUN curl -fsSL -o dockerbins.zip "https://${DOCKER_ENDPOINT}/builds/Windows/x86_64/docker-${DOCKER_VERSION}.zip" && \
3640
unzip dockerbins.zip && \
3741
mv docker/docker.exe . && \
3842
rm -r docker/ dockerbins.zip

0 commit comments

Comments
 (0)