This repository was archived by the owner on Sep 26, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,15 @@ RUN curl -fsSL -o /vbox.dmg http://download.virtualbox.org/virtualbox/$VBOX_VERS
2929ENV INSTALLER_VERSION 1.12.2-rc1
3030ENV 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
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ RUN mkdir /bundle
3232
3333WORKDIR /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
You can’t perform that action at this time.
0 commit comments