Merge branch 'master' of github.com:docker/toolbox

This commit is contained in:
Jeffrey Morgan 2015-07-11 21:59:43 -07:00
commit 42eaebc486
12 changed files with 70 additions and 46 deletions

View File

@ -1 +1,3 @@
# Docker Toolbox # Docker Toolbox
![illustration-website copy](https://cloud.githubusercontent.com/assets/251292/8635484/dea7d166-27d8-11e5-93f9-76d20b2fa80e.png)

View File

@ -1 +1,9 @@
# Docker Toolbox Roadmap # Docker Toolbox Roadmap
## Documentation Work
* [ ] [Rewrite Mac Installation](https://github.com/docker/docker/issues/14561) 2-3 hours
* [ ] [Rewrite Windows Installation](https://github.com/docker/docker/issues/14560) 2-3 hours
* [ ] [Update Getting started on Mac](https://github.com/docker/tutorials/issues/8) 2-3 hours
* [ ] [Update throughout documentation for removal of boot2docker](https://github.com/docker/docker/issues/14563) 2-3 hours

View File

@ -42,21 +42,23 @@ DefaultGroupName=Docker Inc
;InfoBeforeFile=.\LICENSE ;InfoBeforeFile=.\LICENSE
;DisableFinishedPage ;DisableFinishedPage
;InfoAfterFile= ;InfoAfterFile=
OutputBaseFilename=docker-toolbox OutputBaseFilename=DockerToolbox
Compression=lzma Compression=lzma
SolidCompression=yes SolidCompression=yes
WizardImageFile=logo-docker-side.bmp WizardImageFile=windows-installer-side.bmp
WizardSmallImageFile=logo-docker-small.bmp WizardSmallImageFile=windows-installer-logo.bmp
WizardImageStretch=no WizardImageStretch=no
WizardImageBackColor=$325461 WizardImageBackColor=$325461
; in the installer itself: ; in the installer itself:
SetupIconFile=toolbox.ico
; in the "Add/Remove" list: ; in the "Add/Remove" list:
UninstallDisplayIcon={app}\toolbox.ico UninstallDisplayIcon={app}\toolbox.ico
SignTool=ksign /d $q{#MyAppName}$q /du $q{#MyAppURL}$q $f SignTool=ksign /d $q{#MyAppName}$q /du $q{#MyAppURL}$q $f
SetupIconFile=toolbox.ico
; for modpath.iss ; for modpath.iss
ChangesEnvironment=true ChangesEnvironment=true
@ -75,25 +77,27 @@ Name: rebootwindows; Description: "&Reboot Windows at the end of installation";
[Components] [Components]
Name: "Docker"; Description: "Docker Client for Windows" ; Types: full upgrade Name: "Docker"; Description: "Docker Client for Windows" ; Types: full upgrade
Name: "DockerMachine"; Description: "Docker Machine for Windows" ; Types: full upgrade
Name: "Kitematic"; Description: "Kitematic for Windows" ; Types: full upgrade Name: "Kitematic"; Description: "Kitematic for Windows" ; Types: full upgrade
Name: "Boot2Docker"; Description: "Boot2Docker ISO" ; Types: full upgrade
Name: "VirtualBox"; Description: "VirtualBox"; Types: full Name: "VirtualBox"; Description: "VirtualBox"; Types: full
Name: "MSYS"; Description: "MSYS-git UNIX tools"; Types: full Name: "MSYS"; Description: "MSYS-git UNIX tools"; Types: full
[Files] [Files]
Source: ".\toolbox.ico"; DestDir: "{app}"; Flags: ignoreversion Source: ".\docker-cli.ico"; DestDir: "{app}"; Flags: ignoreversion
; Docker ; Docker
Source: "{#dockerCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker" Source: "{#dockerCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker"
Source: "{#dockerMachineCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker"
Source: ".\start.sh"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker" Source: ".\start.sh"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker"
Source: ".\delete.sh"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker" Source: ".\delete.sh"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker"
; DockerMachine
Source: "{#dockerMachineCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "DockerMachine"
; Kitematic ; Kitematic
Source: "{#kitematicSetup}"; DestDir: "{app}\installers\kitematic"; Flags: ignoreversion; AfterInstall: RunInstallKitematic(); Components: "Kitematic" Source: "{#kitematicSetup}"; DestDir: "{app}\installers\kitematic"; Flags: ignoreversion; AfterInstall: RunInstallKitematic(); Components: "Kitematic"
; Boot2Docker ; Boot2Docker
Source: "{#b2dIso}"; DestDir: "{app}"; Flags: ignoreversion; Components: "Boot2Docker" Source: "{#b2dIso}"; DestDir: "{app}"; Flags: ignoreversion; Components: "DockerMachine"
; msys-Git ; msys-Git
Source: "{#msysGit}"; DestDir: "{app}\installers\msys-git"; DestName: "msys-git.exe"; AfterInstall: RunInstallMSYS(); Components: "MSYS" Source: "{#msysGit}"; DestDir: "{app}\installers\msys-git"; DestName: "msys-git.exe"; AfterInstall: RunInstallMSYS(); Components: "MSYS"
@ -106,10 +110,10 @@ Source: "{#virtualBoxMsi}"; DestDir: "{app}\installers\virtualbox"; DestName: "v
[Icons] [Icons]
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{group}\Docker CLI"; WorkingDir: "{app}"; Filename: "{app}\start.sh"; IconFilename: "{app}/toolbox.ico" Name: "{group}\Docker CLI"; WorkingDir: "{app}"; Filename: "{app}\start.sh"; IconFilename: "{app}/docker-cli.ico"; Components: "Docker"
Name: "{commondesktop}\Docker CLI"; WorkingDir: "{app}"; Filename: "{app}\start.sh"; IconFilename: "{app}/toolbox.ico"; Tasks: desktopicon Name: "{commondesktop}\Docker CLI"; WorkingDir: "{app}"; Filename: "{app}\start.sh"; IconFilename: "{app}/docker-cli.ico"; Tasks: desktopicon; Components: "Docker"
Name: "{commonprograms}\Docker CLI"; WorkingDir: "{app}"; Filename: "{app}\start.sh"; IconFilename: "{app}/toolbox.ico" Name: "{commonprograms}\Docker CLI"; WorkingDir: "{app}"; Filename: "{app}\start.sh"; IconFilename: "{app}/docker-cli.ico"; Components: "Docker"
Name: "{group}\Delete VirtualBox Dev VM"; WorkingDir: "{app}"; Filename: "{app}\delete.sh" Name: "{group}\Delete VirtualBox Dev VM"; WorkingDir: "{app}"; Filename: "{app}\delete.sh"; Components: "DockerMachine"
[UninstallRun] [UninstallRun]
Filename: "{app}\delete.sh" Filename: "{app}\delete.sh"
@ -209,15 +213,15 @@ begin
//WizardForm.NextButton.Caption := SetupMessage(msgButtonNext); //WizardForm.NextButton.Caption := SetupMessage(msgButtonNext);
//if CurPageID = wpFinished then //if CurPageID = wpFinished then
//WizardForm.NextButton.Caption := SetupMessage(msgButtonFinish) //WizardForm.NextButton.Caption := SetupMessage(msgButtonFinish)
if CurPageID = wpSelectComponents then // if CurPageID = wpSelectComponents then
begin // begin
if IsUpgrade() then // if IsUpgrade() then
begin // begin
Wizardform.TypesCombo.ItemIndex := 2 // Wizardform.TypesCombo.ItemIndex := 2
end; // end;
Wizardform.ComponentsList.Checked[2] := NeedToInstallVirtualBox(); // Wizardform.ComponentsList.Checked[3] := NeedToInstallVirtualBox();
Wizardform.ComponentsList.Checked[3] := NeedToInstallMSYS(); // Wizardform.ComponentsList.Checked[4] := NeedToInstallMSYS();
end; // end;
end; end;
procedure RunInstallVirtualBox(); procedure RunInstallVirtualBox();

BIN
windows/docker-cli.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

View File

@ -1,37 +1,47 @@
#!/bin/bash #!/bin/bash
set -e ISO=$HOME/.docker/machine/cache/boot2docker.iso
VM=dev
DOCKER_MACHINE=./docker-machine.exe
# clear the MSYS MOTD mkdir -p ~/.docker/machine/cache
clear if [ ! -f $ISO ]; then
cd "$(dirname "$BASH_SOURCE")"
ISO="$HOME/.boot2docker/boot2docker.iso"
if [ ! -e "$ISO" ]; then
echo 'copying initial boot2docker.iso (run "boot2docker.exe download" to update)'
mkdir -p "$(dirname "$ISO")" mkdir -p "$(dirname "$ISO")"
cp ./boot2docker.iso "$ISO" cp ./boot2docker.iso "$ISO"
fi fi
echo 'initializing...' machine=$($DOCKER_MACHINE ls -q | grep "^$VM$")
./boot2docker.exe init if [ -z $machine ]; then
echo echo "Creating Machine $VM..."
$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM
else
echo "Machine $VM already exists."
fi
echo 'starting...' echo "Starting machine $VM..."
./boot2docker.exe start $DOCKER_MACHINE start dev
echo
echo 'IP address of docker VM:' echo "Setting environment variables for machine $VM..."
./boot2docker.exe ip ./docker-machine.exe env $VM | sed 's,\\,\\\\,g' # eval swallows single backslashes in windows style path
echo
echo 'setting environment variables ...' eval "$(./docker-machine.exe env $VM 2>/dev/null | sed 's,\\,\\\\,g')"
./boot2docker.exe shellinit | sed 's,\\,\\\\,g' # eval swallows single backslashes in windows style path
eval "$(./boot2docker.exe shellinit 2>/dev/null | sed 's,\\,\\\\,g')"
echo
echo 'You can now use `docker` directly, or `boot2docker ssh` to log into the VM.'
cd cd
clear
cat << EOF
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
EOF
echo
echo "Your shell is configured to use docker with the VM: $VM"
echo "You can ssh into the VM via 'docker-machine ssh $VM'"
echo
exec "$BASH" --login -i exec "$BASH" --login -i

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB