mirror of https://github.com/docker/docs.git
64 lines
2.5 KiB
Docker
64 lines
2.5 KiB
Docker
FROM debian:jessie
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
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
|
|
|
|
# innosetup
|
|
RUN mkdir innosetup && \
|
|
cd innosetup && \
|
|
curl -fsSL -o innounp045.rar "https://downloads.sourceforge.net/project/innounp/innounp/innounp%200.45/innounp045.rar?r=&ts=1439566551&use_mirror=skylineservers" && \
|
|
unrar e innounp045.rar
|
|
|
|
RUN cd innosetup && \
|
|
curl -fsSL -o is-unicode.exe http://files.jrsoftware.org/is/5/isetup-5.5.8-unicode.exe && \
|
|
wine "./innounp.exe" -e "is-unicode.exe"
|
|
|
|
# installer components
|
|
ENV INSTALLER_VERSION 1.12.1
|
|
ENV DOCKER_VERSION 1.12.1
|
|
ENV DOCKER_MACHINE_VERSION 0.8.1
|
|
ENV DOCKER_COMPOSE_VERSION 1.8.0
|
|
ENV BOOT2DOCKER_ISO_VERSION $DOCKER_VERSION
|
|
ENV KITEMATIC_VERSION 0.12.0
|
|
ENV VIRTUALBOX_VERSION 5.1.4
|
|
ENV VIRTUALBOX_REVISION 110228
|
|
ENV GIT_VERSION 2.9.0
|
|
ENV MIXPANEL_TOKEN c306ae65c33d7d09fe3e546f36493a6e
|
|
|
|
RUN mkdir /bundle
|
|
|
|
WORKDIR /bundle
|
|
|
|
RUN curl -fsSL -o dockerbins.zip "https://get.docker.com/builds/Windows/x86_64/docker-${DOCKER_VERSION}.zip" && \
|
|
unzip dockerbins.zip && \
|
|
mv docker/docker.exe . && \
|
|
rm -r docker/ dockerbins.zip
|
|
|
|
RUN curl -fsSL -o docker-machine.exe "https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-Windows-x86_64.exe"
|
|
|
|
RUN curl -fsSL -o docker-compose.exe "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-Windows-x86_64.exe"
|
|
|
|
RUN curl -fsSL -o boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v$BOOT2DOCKER_ISO_VERSION/boot2docker.iso
|
|
|
|
RUN curl -fsSL -o kitematic.zip "https://github.com/kitematic/kitematic/releases/download/v$KITEMATIC_VERSION/Kitematic-$KITEMATIC_VERSION-Windows.zip" && \
|
|
mkdir kitematic && \
|
|
cd kitematic && \
|
|
unzip ../kitematic.zip && \
|
|
rm ../kitematic.zip
|
|
RUN curl -fsSL -o Git.exe "https://github.com/git-for-windows/git/releases/download/v$GIT_VERSION.windows.1/Git-$GIT_VERSION-64-bit.exe"
|
|
RUN curl -fsSL -o virtualbox.exe "http://download.virtualbox.org/virtualbox/$VIRTUALBOX_VERSION/VirtualBox-$VIRTUALBOX_VERSION-$VIRTUALBOX_REVISION-Win.exe"
|
|
RUN wine virtualbox.exe -extract -silent -path . && \
|
|
rm virtualbox.exe && \
|
|
rm *x86.msi && \
|
|
mv *_amd64.msi VirtualBox_amd64.msi
|
|
|
|
# Add installer resources
|
|
COPY windows /installer
|
|
|
|
WORKDIR /installer
|
|
RUN rm -rf /tmp/.wine-0/
|
|
RUN wine ../innosetup/ISCC.exe Toolbox.iss /DMyAppVersion=$INSTALLER_VERSION /DMixpanelToken=$MIXPANEL_TOKEN
|