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

Commit

Permalink
Merge branch 'master' of github.com:docker/toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jmorganca committed Aug 13, 2015
2 parents e8c3a5e + 5cd30d7 commit afd8faf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions osx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN curl -fsSL -o /vbox.dmg http://download.virtualbox.org/virtualbox/$VBOX_VERS

# Download the Docker parts

ENV DOCKER_VERSION 1.8.0
ENV DOCKER_VERSION 1.8.1
RUN curl -fsSL -o /docker https://get.docker.com/builds/Darwin/x86_64/docker-$DOCKER_VERSION
RUN chmod +x /docker

Expand All @@ -41,10 +41,10 @@ RUN chmod +x /docker-compose
ENV BOOT2DOCKER_ISO_VERSION $DOCKER_VERSION
RUN curl -fsSL -o /boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v$DOCKER_VERSION/boot2docker.iso

ENV KITEMATIC_VERSION 0.8.1
ENV KITEMATIC_VERSION 0.8.2
RUN curl -fsSL -o /kitematic.zip https://github.com/kitematic/kitematic/releases/download/v$KITEMATIC_VERSION/Kitematic-$KITEMATIC_VERSION-Mac.zip

ENV INSTALLER_VERSION 1.8.0b
ENV INSTALLER_VERSION 1.8.1

ENV MIXPANEL_TOKEN c306ae65c33d7d09fe3e546f36493a6e

Expand Down
6 changes: 5 additions & 1 deletion osx/mpkg/boot2dockeriso.pkg/Scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ VM=default

VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage

if [ -f $VBOXMANAGE ] && [ -f /usr/local/bin/docker-machine ]; then
# Make sure this version of boot2docker can migrate
/usr/local/bin/docker-machine create --help | grep virtualbox-import-boot2docker-vm
DOCKER_MACHINE_MIGRATION_CHECK=$?

if [ -f $VBOXMANAGE ] && [ -f /usr/local/bin/docker-machine ] && [ $DOCKER_MACHINE_MIGRATION_CHECK -eq 0 ]; then
sudo -u $USER $VBOXMANAGE showvminfo $BOOT2DOCKER_VM &> /dev/null
BOOT2DOCKER_VM_EXISTS_CODE=$?

Expand Down

0 comments on commit afd8faf

Please sign in to comment.