├── osx ├── mpkg │ ├── quickstart.app │ │ └── Contents │ │ │ ├── PkgInfo │ │ │ ├── MacOS │ │ │ └── applet │ │ │ ├── Resources │ │ │ ├── applet.icns │ │ │ ├── applet.rsrc │ │ │ ├── Scripts │ │ │ │ ├── iterm.scpt │ │ │ │ ├── main.scpt │ │ │ │ ├── terminal.scpt │ │ │ │ └── start.sh │ │ │ └── description.rtfd │ │ │ │ └── TXT.rtf │ │ │ └── Info.plist │ ├── Resources │ │ ├── toolbox.png │ │ └── en.lproj │ │ │ ├── toolbox.png │ │ │ ├── welcome.rtfd │ │ │ ├── TXT.rtf │ │ │ └── toolbox.png │ │ │ └── Localizable.strings │ ├── Plugins │ │ ├── overviewplugin.bundle │ │ │ └── Contents │ │ │ │ ├── MacOS │ │ │ │ └── overviewplugin │ │ │ │ ├── Resources │ │ │ │ ├── en.lproj │ │ │ │ │ ├── InfoPlist.strings │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── Base.lproj │ │ │ │ │ └── overviewplugin.nib │ │ │ │ ├── InstallerSections.plist │ │ │ │ └── overview.html │ │ │ │ └── Info.plist │ │ ├── quickstartplugin.bundle │ │ │ └── Contents │ │ │ │ ├── MacOS │ │ │ │ └── quickstartplugin │ │ │ │ ├── Resources │ │ │ │ ├── kitematic.png │ │ │ │ ├── quickstart.png │ │ │ │ ├── en.lproj │ │ │ │ │ ├── InfoPlist.strings │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── Base.lproj │ │ │ │ │ └── quickstartplugin.nib │ │ │ │ └── InstallerSections.plist │ │ │ │ └── Info.plist │ │ └── InstallerSections.plist │ ├── docker.pkg │ │ └── PackageInfo │ ├── dockercompose.pkg │ │ └── PackageInfo │ ├── dockermachine.pkg │ │ └── PackageInfo │ ├── kitematicapp.pkg │ │ └── PackageInfo │ ├── dockerquickstartterminalapp.pkg │ │ └── PackageInfo │ ├── boot2dockeriso.pkg │ │ ├── PackageInfo │ │ └── Scripts │ │ │ └── postinstall │ └── Distribution ├── installerplugins │ ├── overviewplugin │ │ ├── en.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── Localizable.strings │ │ ├── overviewpluginPane.h │ │ ├── InstallerSections.plist │ │ ├── overview.html │ │ ├── Info.plist │ │ ├── overviewpluginPane.m │ │ └── Base.lproj │ │ │ └── overviewplugin.xib │ ├── quickstartplugin │ │ ├── en.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── Localizable.strings │ │ ├── kitematic.png │ │ ├── quickstart.png │ │ ├── InstallerSections.plist │ │ ├── quickstartpluginPane.h │ │ ├── Info.plist │ │ ├── quickstartpluginPane.m │ │ └── Base.lproj │ │ │ └── quickstartplugin.xib │ ├── common │ │ └── mixpanel.h │ └── installerplugins.xcodeproj │ │ └── project.pbxproj └── uninstall.sh ├── windows ├── 256-logo.xcf ├── toolbox.ico ├── windows-installer-logo.bmp ├── windows-installer-side.bmp ├── docker-quickstart-terminal.ico ├── guid.iss ├── base64.iss ├── start.sh ├── modpath.iss └── Toolbox.iss ├── ROADMAP.md ├── Jenkinsfile ├── script ├── build-osx ├── build-windows └── deploy.sh ├── .gitignore ├── .dockerignore ├── Makefile ├── docs └── README.md ├── circle.yml ├── CONTRIBUTING.md ├── MAINTAINERS ├── LICENSE ├── README.md ├── LICENSE └── ORACLE_VIRTUALBOX_LICENSE ├── README.md ├── Dockerfile.windows └── Dockerfile.osx /osx/mpkg/quickstart.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /windows/256-logo.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/windows/256-logo.xcf -------------------------------------------------------------------------------- /windows/toolbox.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/windows/toolbox.ico -------------------------------------------------------------------------------- /ROADMAP.md: -------------------------------------------------------------------------------- 1 | # Docker Toolbox Roadmap 2 | 3 | ## Features 4 | 5 | * Linux support (help wanted) 6 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | InstallerSectionTitle = "Overview"; 2 | 3 | -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | InstallerSectionTitle = "Quick Start"; 2 | 3 | -------------------------------------------------------------------------------- /osx/mpkg/Resources/toolbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Resources/toolbox.png -------------------------------------------------------------------------------- /windows/windows-installer-logo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/windows/windows-installer-logo.bmp -------------------------------------------------------------------------------- /windows/windows-installer-side.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/windows/windows-installer-side.bmp -------------------------------------------------------------------------------- /windows/docker-quickstart-terminal.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/windows/docker-quickstart-terminal.ico -------------------------------------------------------------------------------- /osx/mpkg/Resources/en.lproj/toolbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Resources/en.lproj/toolbox.png -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | "PaneTitle" = "Overview"; -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/quickstart.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | "PaneTitle" = "Quick Start"; -------------------------------------------------------------------------------- /osx/mpkg/Resources/en.lproj/welcome.rtfd/TXT.rtf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Resources/en.lproj/welcome.rtfd/TXT.rtf -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/kitematic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/installerplugins/quickstartplugin/kitematic.png -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/quickstart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/installerplugins/quickstartplugin/quickstart.png -------------------------------------------------------------------------------- /osx/mpkg/Resources/en.lproj/welcome.rtfd/toolbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Resources/en.lproj/welcome.rtfd/toolbox.png -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/quickstart.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/quickstart.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/Scripts/iterm.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/quickstart.app/Contents/Resources/Scripts/iterm.scpt -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/quickstart.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | // Only run on Linux atm 2 | wrappedNode(label: 'docker') { 3 | deleteDir() 4 | stage "checkout" 5 | checkout scm 6 | 7 | documentationChecker("docs") 8 | } 9 | -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/Scripts/terminal.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/quickstart.app/Contents/Resources/Scripts/terminal.scpt -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf200 2 | {\fonttbl} 3 | {\colortbl;\red255\green255\blue255;} 4 | } -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/MacOS/overviewplugin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/overviewplugin.bundle/Contents/MacOS/overviewplugin -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/MacOS/quickstartplugin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/quickstartplugin.bundle/Contents/MacOS/quickstartplugin -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/kitematic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/kitematic.png -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/quickstart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/quickstart.png -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/Base.lproj/overviewplugin.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/Base.lproj/overviewplugin.nib -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/Base.lproj/quickstartplugin.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sales/toolbox/master/osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/Base.lproj/quickstartplugin.nib -------------------------------------------------------------------------------- /script/build-osx: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker build -t osx-installer -f Dockerfile.osx . 4 | CONTAINER="$(docker run -d osx-installer)" 5 | mkdir -p dist 6 | docker cp "${CONTAINER}":/DockerToolbox.pkg dist/ 7 | docker rm "${CONTAINER}" 2>/dev/null || true 8 | -------------------------------------------------------------------------------- /script/build-windows: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | docker build -t windows-installer -f Dockerfile.windows . 6 | CONTAINER="$(docker run -d windows-installer)" 7 | mkdir -p dist 8 | docker cp "${CONTAINER}":/installer/Output/DockerToolbox.exe dist/ 9 | docker rm "${CONTAINER}" 2>/dev/null || true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # XCode projects 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | 18 | # output 19 | dist 20 | 21 | # release 22 | .sign 23 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | # XCode projects 2 | .DS_Store 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | *.xcworkspace 13 | !default.xcworkspace 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | 18 | # Toolbox output 19 | dist 20 | 21 | # Release 22 | .sign 23 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: docs osx windows 2 | 3 | default: osx windows 4 | @true 5 | 6 | clean: clean-osx clean-windows 7 | @true 8 | 9 | osx: clean-osx 10 | ./script/build-osx 11 | 12 | windows: clean-windows 13 | ./script/build-windows 14 | 15 | clean-osx: 16 | rm -f dist/DockerToolbox-*.pkg 17 | 18 | clean-windows: 19 | rm -f dist/DockerToolbox-*.exe 20 | 21 | docs: 22 | $(MAKE) -C docs docs 23 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # The docs have been moved! 2 | 3 | The documentation for Toolbox has been merged into 4 | [the general documentation repo](https://github.com/docker/docker.github.io). 5 | 6 | The docs for Toolbox are now here: 7 | https://github.com/docker/docker.github.io/tree/master/toolbox 8 | 9 | As always, the docs remain open-source and we appreciate your feedback and 10 | pull requests! 11 | 12 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/overviewpluginPane.h: -------------------------------------------------------------------------------- 1 | // 2 | // overviewpluginPane.h 3 | // overviewplugin 4 | // 5 | // Created by Jeffrey Dean Morgan on 8/24/15. 6 | // Copyright (c) 2015 Docker Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface overviewpluginPane : InstallerPane 12 | @property (unsafe_unretained) IBOutlet NSTextView *textView; 13 | @property (weak) IBOutlet NSButton *checkbox; 14 | @end 15 | -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | pre: 3 | - echo 'DOCKER_OPTS="-s btrfs -e lxc -D --userland-proxy=false"' | sudo tee -a /etc/default/docker 4 | - sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci-cp-workaround' 5 | - sudo chmod 0755 /usr/bin/docker 6 | services: 7 | - docker 8 | 9 | test: 10 | override: 11 | - exit 0 12 | 13 | deployment: 14 | release: 15 | tag: /v.*/ 16 | owner: docker 17 | commands: 18 | - ./script/deploy.sh 19 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/InstallerSections.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SectionOrder 6 | 7 | Introduction 8 | ReadMe 9 | License 10 | overviewplugin.bundle 11 | Target 12 | PackageSelection 13 | Install 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/InstallerSections.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SectionOrder 6 | 7 | Introduction 8 | ReadMe 9 | License 10 | quickstartplugin.bundle 11 | Target 12 | PackageSelection 13 | Install 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /osx/mpkg/docker.pkg/PackageInfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/InstallerSections.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SectionOrder 6 | 7 | Introduction 8 | ReadMe 9 | License 10 | overviewplugin.bundle 11 | Target 12 | PackageSelection 13 | Install 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Resources/InstallerSections.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SectionOrder 6 | 7 | Introduction 8 | ReadMe 9 | License 10 | quickstartplugin.bundle 11 | Target 12 | PackageSelection 13 | Install 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/quickstartpluginPane.h: -------------------------------------------------------------------------------- 1 | // 2 | // quickstartpluginPane.h 3 | // quickstartplugin 4 | // 5 | // Created by Jeffrey Dean Morgan on 8/19/15. 6 | // Copyright (c) 2015 Docker Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface quickstartpluginPane : InstallerPane 12 | @property (weak) IBOutlet NSButton *quickstartImageView; 13 | @property (weak) IBOutlet NSButton *kitematicImageView; 14 | @property (weak) IBOutlet NSTextField *quickstartLabel; 15 | @property (weak) IBOutlet NSTextField *kitematicLabel; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /osx/mpkg/Plugins/InstallerSections.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SectionOrder 6 | 7 | Introduction 8 | overviewplugin.bundle 9 | Target 10 | PackageSelection 11 | Install 12 | managevmplugin.bundle 13 | quickstartplugin.bundle 14 | Summary 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /osx/mpkg/dockercompose.pkg/PackageInfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /osx/mpkg/dockermachine.pkg/PackageInfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /osx/mpkg/kitematicapp.pkg/PackageInfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /osx/mpkg/dockerquickstartterminalapp.pkg/PackageInfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /osx/mpkg/boot2dockeriso.pkg/PackageInfo: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /script/deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Try several times to do the build (sometimes network or other issues causes 4 | # it to fail) 5 | for i in $(seq 0 4); do 6 | echo "Trying build $i..." 7 | make clean 8 | make 9 | if [[ $? -eq 0 ]]; then 10 | cp dist/* $CIRCLE_ARTIFACTS 11 | 12 | if [ ! -z "$CIRCLE_TAG" ]; then 13 | curl --header "Content-Type: application/json" \ 14 | --data "{\"build_parameters\": {\"CIRCLE_TAG\": \"$CIRCLE_TAG\", \"TOOLBOX_BUILD_NUM\": $CIRCLE_BUILD_NUM, \"TOOLBOX_ARTIFACTS\": \"$CIRCLE_ARTIFACTS\"}}" \ 15 | --request POST "https://circleci.com/api/v1/project/docker/toolbox-release/tree/master?circle-token=$CIRCLE_TOKEN" 16 | fi 17 | 18 | exit 0 19 | fi 20 | done 21 | 22 | exit 1 23 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Docker Toolbox for Mac OS X 5 | 6 | 7 |
8 |

9 | The Docker Toolbox installer includes the following: 10 |

11 | 18 |
19 |

20 | The binaries are installed in the /usr/local/bin directory. 21 |

22 | 23 | -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/Resources/overview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Docker Toolbox for Mac OS X 5 | 6 | 7 |
8 |

9 | The Docker Toolbox installer includes the following: 10 |

11 | 18 |
19 |

20 | The binaries are installed in the /usr/local/bin directory. 21 |

22 | 23 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing to Docker Toolbox 2 | ================================== 3 | 4 | The Docker Toolbox is a part of the [Docker](https://www.docker.com) project, and follows 5 | the [contributing guidelines](https://github.com/docker/docker/blob/master/CONTRIBUTING.md). If you're already familiar with the way 6 | Docker does things, you'll feel right at home. 7 | 8 | Please [sign your work](https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work) before creating a pull request. 9 | 10 | Thanks for taking the time to improve the Docker Toolbox! 11 | 12 | ## License 13 | 14 | By contributing your code, you agree to license your contribution under the [Apache license](https://github.com/docker/toolbox/blob/master/LICENSE/LICENSE). 15 | 16 | ## Diff scpt files 17 | 18 | .gitattributes 19 | ``` 20 | *.scpt diff=scpt 21 | ``` 22 | 23 | .git/config 24 | ``` 25 | [diff "scpt"] 26 | textconv = osadecompile 27 | binary = true 28 | ``` 29 | -------------------------------------------------------------------------------- /osx/uninstall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Uninstall Script 4 | 5 | if [ "${USER}" != "root" ]; then 6 | echo "$0 must be run as root!" 7 | exit 2 8 | fi 9 | 10 | while true; do 11 | read -p "Remove all Docker Machine VMs? (Y/N): " yn 12 | case $yn in 13 | [Yy]* ) docker-machine rm -f $(docker-machine ls -q); break;; 14 | [Nn]* ) break;; 15 | * ) echo "Please answer yes or no."; exit 1;; 16 | esac 17 | done 18 | 19 | echo "Removing Applications..." 20 | rm -rf /Applications/Docker 21 | 22 | echo "Removing docker binaries..." 23 | rm -f /usr/local/bin/docker 24 | rm -f /usr/local/bin/docker-machine 25 | rm -r /usr/local/bin/docker-machine-driver* 26 | rm -f /usr/local/bin/docker-compose 27 | 28 | echo "Removing boot2docker.iso" 29 | rm -rf /usr/local/share/boot2docker 30 | 31 | echo "Forget packages" 32 | pkgutil --forget io.docker.pkg.docker 33 | pkgutil --forget io.docker.pkg.dockercompose 34 | pkgutil --forget io.docker.pkg.dockermachine 35 | pkgutil --forget io.boot2dockeriso.pkg.boot2dockeriso 36 | 37 | echo "All Done!" 38 | -------------------------------------------------------------------------------- /osx/mpkg/boot2dockeriso.pkg/Scripts/postinstall: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | CONSOLE_USER=$(stat -f '%Su' /dev/console) 4 | CONSOLE_USER_HOME=$(su $CONSOLE_USER -c 'echo $HOME') 5 | VM=default 6 | 7 | # Fix permissions on binaries 8 | chown -R $CONSOLE_USER:admin /usr/local/bin/docker || true 9 | chown -R $CONSOLE_USER:admin /usr/local/bin/docker-machine || true 10 | chown -R $CONSOLE_USER:admin /usr/local/bin/docker-compose || true 11 | 12 | # Place boot2docker ISO in cache & upgrade the boot2docker VM 13 | mkdir -p $CONSOLE_USER_HOME/.docker/machine/cache 14 | cp /usr/local/share/boot2docker/boot2docker.iso $CONSOLE_USER_HOME/.docker/machine/cache/boot2docker.iso 15 | 16 | if [ -d "$CONSOLE_USER_HOME/.docker/machine/machines/$VM" ] && [ -f /usr/local/bin/docker-machine ]; then 17 | sudo -i -u "$CONSOLE_USER" "/usr/local/bin/docker-machine stop $VM || true" 18 | cp /usr/local/share/boot2docker/boot2docker.iso $CONSOLE_USER_HOME/.docker/machine/machines/$VM/boot2docker.iso 19 | fi 20 | 21 | chown -R $CONSOLE_USER:staff $CONSOLE_USER_HOME/.docker 22 | 23 | -------------------------------------------------------------------------------- /MAINTAINERS: -------------------------------------------------------------------------------- 1 | # Toolbox maintainers file 2 | # 3 | # This file describes who runs the docker/toolbox project and how. 4 | # This is a living document - if you see something out of date or missing, speak up! 5 | # 6 | # It is structured to be consumable by both humans and programs. 7 | # To extract its contents programmatically, use any TOML-compliant parser. 8 | # 9 | # This file is compiled into the MAINTAINERS file in docker/opensource. 10 | # 11 | [Org] 12 | [Org."Core maintainers"] 13 | people = [ 14 | "jeffdm", 15 | "lisean106", 16 | "mchiang0610", 17 | ] 18 | 19 | [people] 20 | 21 | # A reference list of all people associated with the project. 22 | # All other sections should refer to people by their canonical key 23 | # in the people section. 24 | 25 | # ADD YOURSELF HERE IN ALPHABETICAL ORDER 26 | 27 | [people.jeffdm] 28 | Name = "Jeff Morgan" 29 | Email = "jmorgan@docker.com" 30 | GitHub = "jeffdm" 31 | 32 | [people.lisean106] 33 | Name = "Sean Li" 34 | Email = "sean@docker.com" 35 | GitHub = "lisean106" 36 | 37 | [people.mchiang0610] 38 | Name = "Michael Chiang" 39 | Email = "mchiang@docker.com" 40 | GitHub = "mchiang0610" 41 | -------------------------------------------------------------------------------- /windows/guid.iss: -------------------------------------------------------------------------------- 1 | // Licensed under Creative Commons Attribution-ShareAlike 3.0 Unported 2 | // Source: http://stackoverflow.com/questions/1347083/how-to-generate-a-new-guid-in-inno-setup 3 | 4 | function CoCreateGuid(var Guid:TGuid):integer; 5 | external 'CoCreateGuid@ole32.dll stdcall'; 6 | 7 | function inttohex(l:longword; digits:integer):string; 8 | var hexchars:string; 9 | begin 10 | hexchars:='0123456789ABCDEF'; 11 | setlength(result,digits); 12 | while (digits>0) do begin 13 | result[digits]:=hexchars[l mod 16+1]; 14 | l:=l div 16; 15 | digits:=digits-1; 16 | end; 17 | end; 18 | 19 | function GetGuid(dummy:string):string; 20 | var Guid:TGuid; 21 | begin 22 | if CoCreateGuid(Guid)=0 then begin 23 | result:='{'+IntToHex(Guid.D1,8)+'-'+ 24 | IntToHex(Guid.D2,4)+'-'+ 25 | IntToHex(Guid.D3,4)+'-'+ 26 | IntToHex(Guid.D4[0],2)+IntToHex(Guid.D4[1],2)+'-'+ 27 | IntToHex(Guid.D4[2],2)+IntToHex(Guid.D4[3],2)+ 28 | IntToHex(Guid.D4[4],2)+IntToHex(Guid.D4[5],2)+ 29 | IntToHex(Guid.D4[6],2)+IntToHex(Guid.D4[7],2)+ 30 | '}'; 31 | end else 32 | result:='{00000000-0000-0000-0000-000000000000}'; 33 | end; 34 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | Installer Version 24 | %INSTALLER_VERSION% 25 | InstallerSectionTitle 26 | Overview 27 | Mixpanel Token 28 | %MIXPANEL_TOKEN% 29 | NSHumanReadableCopyright 30 | Copyright © 2015 Docker Inc. All rights reserved. 31 | NSMainNibFile 32 | overviewplugin 33 | NSPrincipalClass 34 | InstallerSection 35 | 36 | 37 | -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | Installer Version 24 | %INSTALLER_VERSION% 25 | InstallerSectionTitle 26 | quickstartplugin 27 | Mixpanel Token 28 | %MIXPANEL_TOKEN% 29 | NSHumanReadableCopyright 30 | Copyright © 2015 Docker Inc. All rights reserved. 31 | NSMainNibFile 32 | quickstartplugin 33 | NSPrincipalClass 34 | InstallerSection 35 | 36 | 37 | -------------------------------------------------------------------------------- /LICENSE/README.md: -------------------------------------------------------------------------------- 1 | ## License 2 | 3 | Docker Toolbox code is licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/docker/toolbox/blob/master/LICENSE/LICENSE) for the full license text. 4 | 5 | Docker Toolbox Logo and all other related Docker artwork © Docker, Inc. 2015. All rights reserved; not licensed for third party use. 6 | 7 | Oracle VirtualBox – A powerful virtualization product for enterprise as well as home use. Copyright (C) 2004-2015 Oracle Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 8 | 9 | Oracle VirtualBox is licensed under GPL 2.0 license. See [ORACLE VIRTUALBOX LICENSE](https://github.com/docker/toolbox/blob/master/LICENSE/ORACLE_VIRTUALBOX_LICENSE) for the full license text. 10 | -------------------------------------------------------------------------------- /windows/base64.iss: -------------------------------------------------------------------------------- 1 | // Source: http://www.vincenzo.net/isxkb/index.php?title=Encode/Decode_Base64 2 | const Codes64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; 3 | 4 | function Encode64(S: AnsiString): AnsiString; 5 | var 6 | i: Integer; 7 | a: Integer; 8 | x: Integer; 9 | b: Integer; 10 | begin 11 | Result := ''; 12 | a := 0; 13 | b := 0; 14 | for i := 1 to Length(s) do 15 | begin 16 | x := Ord(s[i]); 17 | b := b * 256 + x; 18 | a := a + 8; 19 | while (a >= 6) do 20 | begin 21 | a := a - 6; 22 | x := b div (1 shl a); 23 | b := b mod (1 shl a); 24 | Result := Result + copy(Codes64,x + 1,1); 25 | end; 26 | end; 27 | if a > 0 then 28 | begin 29 | x := b shl (6 - a); 30 | Result := Result + copy(Codes64,x + 1,1); 31 | end; 32 | a := Length(Result) mod 4; 33 | if a = 2 then 34 | Result := Result + '==' 35 | else if a = 3 then 36 | Result := Result + '='; 37 | 38 | end; 39 | 40 | function Decode64(S: AnsiString): AnsiString; 41 | var 42 | i: Integer; 43 | a: Integer; 44 | x: Integer; 45 | b: Integer; 46 | begin 47 | Result := ''; 48 | a := 0; 49 | b := 0; 50 | for i := 1 to Length(s) do 51 | begin 52 | x := Pos(s[i], codes64) - 1; 53 | if x >= 0 then 54 | begin 55 | b := b * 64 + x; 56 | a := a + 6; 57 | if a >= 8 then 58 | begin 59 | a := a - 8; 60 | x := b shr a; 61 | b := b mod (1 shl a); 62 | x := x mod 256; 63 | Result := Result + chr(x); 64 | end; 65 | end 66 | else 67 | Exit; // finish at unknown 68 | end; 69 | end; 70 | -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleAllowMixedLocalizations 6 | 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | applet 11 | CFBundleIconFile 12 | applet 13 | CFBundleIdentifier 14 | com.apple.ScriptEditor.id.dockerquickstartterminalapp 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | Docker Quickstart Terminal 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.3.0 23 | CFBundleSignature 24 | aplt 25 | LSMinimumSystemVersionByArchitecture 26 | 27 | x86_64 28 | 10.6 29 | 30 | LSRequiresCarbon 31 | 32 | NSHumanReadableCopyright 33 | Docker Inc 34 | WindowState 35 | 36 | dividerCollapsed 37 | 38 | eventLogLevel 39 | -1 40 | name 41 | ScriptWindowState 42 | positionOfDivider 43 | 441 44 | savedFrame 45 | 832 234 942 765 0 0 1920 1058 46 | selectedTabView 47 | event log 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /osx/mpkg/Plugins/overviewplugin.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15D21 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | overviewplugin 11 | CFBundleIdentifier 12 | com.docker.overviewplugin 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | overviewplugin 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 7C1002 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 15C43 37 | DTSDKName 38 | macosx10.11 39 | DTXcode 40 | 0721 41 | DTXcodeBuild 42 | 7C1002 43 | Installer Version 44 | %INSTALLER_VERSION% 45 | InstallerSectionTitle 46 | Overview 47 | Mixpanel Token 48 | %MIXPANEL_TOKEN% 49 | NSHumanReadableCopyright 50 | Copyright © 2015 Docker Inc. All rights reserved. 51 | NSMainNibFile 52 | overviewplugin 53 | NSPrincipalClass 54 | InstallerSection 55 | 56 | 57 | -------------------------------------------------------------------------------- /osx/mpkg/Plugins/quickstartplugin.bundle/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 15D21 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | quickstartplugin 11 | CFBundleIdentifier 12 | com.docker.quickstartplugin 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | quickstartplugin 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 7C1002 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 15C43 37 | DTSDKName 38 | macosx10.11 39 | DTXcode 40 | 0721 41 | DTXcodeBuild 42 | 7C1002 43 | Installer Version 44 | %INSTALLER_VERSION% 45 | InstallerSectionTitle 46 | quickstartplugin 47 | Mixpanel Token 48 | %MIXPANEL_TOKEN% 49 | NSHumanReadableCopyright 50 | Copyright © 2015 Docker Inc. All rights reserved. 51 | NSMainNibFile 52 | quickstartplugin 53 | NSPrincipalClass 54 | InstallerSection 55 | 56 | 57 | -------------------------------------------------------------------------------- /osx/mpkg/Resources/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | 'docker_title' = 'Docker Toolbox'; 2 | 3 | 'choiceDockerCLI_title' = 'Docker Client %DOCKER_VERSION%'; 4 | 'choiceDockerCLI_msg' = 'Installs the Docker Client for Mac OS X into /usr/local/bin/'; 5 | 6 | 'choiceDockerMachineCLI_title' = 'Docker Machine %DOCKERMACHINE_VERSION%'; 7 | 'choiceDockerMachineCLI_msg' = 'Installs the Docker Machine binaries into /usr/local/bin/'; 8 | 9 | 'choiceDockerComposeCLI_title' = 'Docker Compose %DOCKERCOMPOSE_VERSION%'; 10 | 'choiceDockerComposeCLI_msg' = 'Installs the Docker Compose binary into /usr/local/bin/'; 11 | 12 | 'choiceBoot2DockerISO_title' = 'Boot2Docker ISO %BOOT2DOCKER_ISO_VERSION%'; 13 | 'choiceBoot2DockerISO_msg' = 'Installs the boot2docker.iso into /usr/local/share/'; 14 | 15 | 'choiceDockerQuickstartTerminalAPP_title' = 'Docker Quickstart Terminal'; 16 | 'choiceDockerQuickstartTerminalAPP_msg' = 'Installs the Docker Quickstart Terminal application into /Applications/Docker/'; 17 | 18 | 'choiceKitematicAPP_title' = 'Docker Kitematic %KITEMATICAPP_VERSION%'; 19 | 'choiceKitematicAPP_msg' = 'Installs Kitematic into /Applications/Docker/'; 20 | 21 | 'choiceVBox_title' = 'Oracle VM VirtualBox %VBOX_VERSION%'; 22 | 'choiceVBox_msg' = 'Installs or Upgrades the Oracle VM VirtualBox application into /Applications if it is not already installed.'; 23 | 24 | 'RUNNING_VMS_TLE' = "Please Quit VirtualBox!"; 25 | 'RUNNING_VMS_MSG' = "The installer has detected that VirtualBox is out of date, and is still running. Please shut down all VMs, quit VirtualBox, and then restart the Docker Toolbox installation."; 26 | 27 | 'UNSUPPORTED_HW_MACHINE_TLE' = "Unsupported hardware architecture detected!"; 28 | 'UNSUPPORTED_HW_MACHINE_MSG' = "The installer has detected an unsupported architecture. VirtualBox only runs on the x86 and amd64 architectures."; 29 | 30 | 'UNSUPPORTED_OS_TLE' = "Unsupported OS version detected!"; 31 | 'UNSUPPORTED_OS_MSG' = "The installer has detected an unsupported operation system. Please upgrade to Mac OS X 10.8 or later."; 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Docker Toolbox 2 | ================================== 3 | 4 | [![docker toolbox logo](https://cloud.githubusercontent.com/assets/251292/9585188/2f31d668-4fca-11e5-86c9-826d18cf45fd.png)](https://www.docker.com/toolbox) 5 | 6 | The Docker Toolbox installs everything you need to get started with 7 | Docker on Mac OS X and Windows. It includes the Docker client, Compose, 8 | Machine, Kitematic, and VirtualBox. 9 | 10 | ## Installation and documentation 11 | 12 | Documentation for Mac [is available here](https://docs.docker.com/mac/started/). 13 | 14 | Documentation for Windows [is available here](https://docs.docker.com/windows/started/). 15 | 16 | *Note:* Some Windows and Mac computers may not have VT-X enabled by default. It is required for VirtualBox. To check if VT-X is enabled on Windows follow this guide [here](http://amiduos.com/support/knowledge-base/article/how-can-i-get-to-know-my-processor-supports-virtualization-technology). To enable VT-X on Windows, please see the guide [here](http://www.howtogeek.com/213795/how-to-enable-intel-vt-x-in-your-computers-bios-or-uefi-firmware). To enable VT-X on Intel-based Macs, refer to this Apple guide [here](https://support.apple.com/en-us/HT203296). 17 | Also note that if the Virtual Machine was created before enabling VT-X it can be necessary to remove and reinstall the VM for Docker Toolbox to work. 18 | 19 | Toolbox is currently unavailable for Linux; To get started with Docker on Linux, please follow the Linux [Getting Started Guide](https://docs.docker.com/linux/started/). 20 | 21 | ## Building the Docker Toolbox 22 | 23 | Toolbox installers are built using Docker, so you'll need a Docker host set up. For example, using [Docker Machine](https://github.com/docker/machine): 24 | 25 | ``` 26 | $ docker-machine create -d virtualbox toolbox 27 | $ eval "$(docker-machine env toolbox)" 28 | ``` 29 | 30 | Then, to build the Toolbox for both platforms: 31 | 32 | ``` 33 | make 34 | ``` 35 | 36 | Build for a specific platform: 37 | 38 | ``` 39 | make osx 40 | ``` 41 | 42 | or 43 | 44 | ``` 45 | make windows 46 | ``` 47 | 48 | The resulting installers will be in the `dist` directory. 49 | 50 | ## Frequently Asked Questions 51 | 52 | **Do I have to install VirtualBox?** 53 | 54 | No, you can deselect VirtualBox during installation. It is bundled in case you want to have a working environment for free. 55 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/overviewpluginPane.m: -------------------------------------------------------------------------------- 1 | // 2 | // overviewpluginPane.m 3 | // overviewplugin 4 | // 5 | // Created by Jeffrey Dean Morgan on 8/24/15. 6 | // Copyright (c) 2015 Docker Inc. All rights reserved. 7 | // 8 | 9 | #import "overviewpluginPane.h" 10 | #import "mixpanel.h" 11 | 12 | @interface overviewpluginPane() 13 | @property BOOL firstTime; 14 | @end 15 | 16 | @implementation overviewpluginPane 17 | 18 | - (id) init { 19 | self.firstTime = YES; 20 | self = [super init]; 21 | return self; 22 | } 23 | 24 | - (NSString *)title { 25 | return [[NSBundle bundleForClass:[self class]] localizedStringForKey:@"PaneTitle" value:nil table:nil]; 26 | } 27 | 28 | - (void) willEnterPane:(InstallerSectionDirection)dir { 29 | NSURL *url = [[[self section] bundle] URLForResource:@"overview" withExtension:@"html"]; 30 | NSMutableAttributedString *formattedHTML = [[NSMutableAttributedString alloc] initWithURL:url documentAttributes:nil]; 31 | [formattedHTML addAttribute:NSFontAttributeName value:[NSFont systemFontOfSize:13.0f] range:NSMakeRange(0, formattedHTML.length)]; 32 | 33 | [[self.textView textStorage] setAttributedString:formattedHTML]; 34 | if (self.firstTime) { 35 | [Mixpanel trackEvent:@"Installer Started" forPane:self]; 36 | self.firstTime = NO; 37 | } 38 | } 39 | 40 | - (void) willExitPane:(InstallerSectionDirection)dir { 41 | if (dir != InstallerDirectionForward) { 42 | return; 43 | } 44 | 45 | BOOL enabled = self.checkbox.state == NSOnState; 46 | [Mixpanel trackEvent:@"Continued from Overview" forPane:self withProperties:[[NSDictionary alloc] initWithObjectsAndKeys:enabled ? @"Yes" : @"No", @"Tracking Enabled", nil]]; 47 | NSError *error = nil; 48 | 49 | if (!enabled) { 50 | [[[self section] sharedDictionary] setObject:[NSNumber numberWithBool:YES] forKey:@"disableTracking"]; 51 | [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/.docker/machine/no-error-report", NSHomeDirectory()] error:&error]; 52 | } else { 53 | [[[self section] sharedDictionary] removeObjectForKey:@"disableTracking"]; 54 | [[NSFileManager defaultManager] createDirectoryAtPath:[NSString stringWithFormat:@"%@/.docker/machine", NSHomeDirectory()] withIntermediateDirectories:YES attributes:nil error:&error]; 55 | [[NSFileManager defaultManager] createFileAtPath:[NSString stringWithFormat:@"%@/.docker/machine/no-error-report", NSHomeDirectory()] contents:[@"" dataUsingEncoding:NSUTF8StringEncoding] attributes:nil]; 56 | } 57 | 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /osx/mpkg/quickstart.app/Contents/Resources/Scripts/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | VM=default 4 | DOCKER_MACHINE=/usr/local/bin/docker-machine 5 | VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS/VBoxManage 6 | 7 | BLUE='\033[0;34m' 8 | GREEN='\033[0;32m' 9 | NC='\033[0m' 10 | 11 | unset DYLD_LIBRARY_PATH 12 | unset LD_LIBRARY_PATH 13 | 14 | #clear all_proxy if not socks address 15 | if [[ $ALL_PROXY != socks* ]]; then 16 | unset ALL_PROXY 17 | fi 18 | if [[ $all_proxy != socks* ]]; then 19 | unset all_proxy 20 | fi 21 | 22 | clear 23 | 24 | if [ ! -f "${DOCKER_MACHINE}" ]; then 25 | echo "Docker Machine is not installed. Please re-run the Toolbox Installer and try again." 26 | exit 1 27 | fi 28 | 29 | if [ ! -f "${VBOXMANAGE}" ]; then 30 | echo "VirtualBox is not installed. Please re-run the Toolbox Installer and try again." 31 | exit 1 32 | fi 33 | 34 | "${VBOXMANAGE}" list vms | grep \""${VM}"\" &> /dev/null 35 | VM_EXISTS_CODE=$? 36 | 37 | if [ $VM_EXISTS_CODE -eq 1 ]; then 38 | "${DOCKER_MACHINE}" rm -f "${VM}" &> /dev/null 39 | rm -rf ~/.docker/machine/machines/"${VM}" 40 | #set proxy variables if they exists 41 | if [ "${HTTP_PROXY}" ]; then 42 | PROXY_ENV="$PROXY_ENV --engine-env HTTP_PROXY=$HTTP_PROXY" 43 | fi 44 | if [ "${HTTPS_PROXY}" ]; then 45 | PROXY_ENV="$PROXY_ENV --engine-env HTTPS_PROXY=$HTTPS_PROXY" 46 | fi 47 | if [ "${NO_PROXY}" ]; then 48 | PROXY_ENV="$PROXY_ENV --engine-env NO_PROXY=$NO_PROXY" 49 | fi 50 | "${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV --virtualbox-memory 2048 --virtualbox-disk-size 204800 "${VM}" 51 | fi 52 | 53 | VM_STATUS="$(${DOCKER_MACHINE} status ${VM} 2>&1)" 54 | if [ "${VM_STATUS}" != "Running" ]; then 55 | "${DOCKER_MACHINE}" start "${VM}" 56 | yes | "${DOCKER_MACHINE}" regenerate-certs "${VM}" 57 | fi 58 | 59 | eval "$(${DOCKER_MACHINE} env --shell=bash --no-proxy ${VM})" 60 | 61 | clear 62 | cat << EOF 63 | 64 | 65 | ## . 66 | ## ## ## == 67 | ## ## ## ## ## === 68 | /"""""""""""""""""\___/ === 69 | ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ 70 | \______ o __/ 71 | \ \ __/ 72 | \____\_______/ 73 | 74 | 75 | EOF 76 | echo -e "${BLUE}docker${NC} is configured to use the ${GREEN}${VM}${NC} machine with IP ${GREEN}$(${DOCKER_MACHINE} ip ${VM})${NC}" 77 | echo "For help getting started, check out the docs at https://docs.docker.com" 78 | echo 79 | 80 | USER_SHELL="$(dscl /Search -read /Users/${USER} UserShell | awk '{print $2}' | head -n 1)" 81 | if [[ "${USER_SHELL}" == *"/bash"* ]] || [[ "${USER_SHELL}" == *"/zsh"* ]] || [[ "${USER_SHELL}" == *"/sh"* ]]; then 82 | "${USER_SHELL}" --login 83 | else 84 | "${USER_SHELL}" 85 | fi 86 | -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/quickstartpluginPane.m: -------------------------------------------------------------------------------- 1 | // 2 | // quickstartpluginPane.m 3 | // quickstartplugin 4 | // 5 | // Created by Jeffrey Dean Morgan on 8/19/15. 6 | // Copyright (c) 2015 Docker Inc. All rights reserved. 7 | // 8 | 9 | #import "quickstartpluginPane.h" 10 | #import "mixpanel.h" 11 | 12 | @implementation quickstartpluginPane 13 | 14 | - (NSString *)title { 15 | return [[NSBundle bundleForClass:[self class]] localizedStringForKey:@"PaneTitle" value:nil table:nil]; 16 | } 17 | 18 | - (void) didEnterPane:(InstallerSectionDirection)dir { 19 | self.previousEnabled = NO; 20 | [Mixpanel trackEvent:@"Installing Files Succeeded" forPane:self]; 21 | } 22 | 23 | - (void) willEnterPane:(InstallerSectionDirection)dir { 24 | BOOL kitematicInstalled = [[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Docker/Kitematic (Beta).app"]; 25 | BOOL quickstartInstalled = [[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Docker/Docker Quickstart Terminal.app"]; 26 | 27 | self.kitematicImageView.image = [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForResource:@"kitematic" ofType:@"png"]]; 28 | self.quickstartImageView.image = [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForResource:@"quickstart" ofType:@"png"]]; 29 | 30 | if (!kitematicInstalled) { 31 | self.kitematicImageView.enabled = NO; 32 | self.kitematicLabel.enabled = NO; 33 | } 34 | 35 | if (!quickstartInstalled) { 36 | self.quickstartImageView.enabled = NO; 37 | self.quickstartLabel.enabled = NO; 38 | } 39 | 40 | if (dir == InstallerDirectionForward && !kitematicInstalled && !quickstartInstalled) { 41 | [self gotoNextPane]; 42 | } 43 | } 44 | 45 | - (void) willExitPane:(InstallerSectionDirection)dir { 46 | if (dir == InstallerDirectionForward) { 47 | [Mixpanel trackEvent:@"Installer Finished" forPane:self withProperties:[[NSDictionary alloc] initWithObjectsAndKeys:@"Continue Button", @"action", nil]]; 48 | } 49 | } 50 | 51 | - (IBAction)quickstartTerminalClicked:(id)sender { 52 | [Mixpanel trackEvent:@"Installer Finished" forPane:self withProperties:[[NSDictionary alloc] initWithObjectsAndKeys:@"Quickstart Terminal", @"action", nil]]; 53 | NSTask *task = [[NSTask alloc] init]; 54 | task.launchPath = @"/usr/bin/open"; 55 | task.arguments = @[@"/Applications/Docker/Docker Quickstart Terminal.app"]; 56 | [task launch]; 57 | } 58 | 59 | - (IBAction)kitematicClicked:(id)sender { 60 | [Mixpanel trackEvent:@"Installer Finished" forPane:self withProperties:[[NSDictionary alloc] initWithObjectsAndKeys:@"Kitematic", @"action", nil]]; 61 | [[NSWorkspace sharedWorkspace] launchApplication:@"Kitematic (Beta)"]; 62 | } 63 | 64 | @end 65 | -------------------------------------------------------------------------------- /Dockerfile.windows: -------------------------------------------------------------------------------- 1 | FROM debian:jessie 2 | 3 | ENV DEBIAN_FRONTEND noninteractive 4 | 5 | RUN dpkg --add-architecture i386 6 | RUN sed -i "s/main/main contrib non-free/" etc/apt/sources.list 7 | RUN apt-get update && apt-get install -yq wine curl unrar unzip 8 | 9 | # innosetup 10 | RUN mkdir innosetup && \ 11 | cd innosetup && \ 12 | curl -fsSL -o innounp045.rar "https://downloads.sourceforge.net/project/innounp/innounp/innounp%200.45/innounp045.rar?r=&ts=1439566551&use_mirror=skylineservers" && \ 13 | unrar e innounp045.rar 14 | 15 | RUN cd innosetup && \ 16 | curl -fsSL -o is-unicode.exe http://files.jrsoftware.org/is/5/isetup-5.5.8-unicode.exe && \ 17 | wine "./innounp.exe" -e "is-unicode.exe" 18 | 19 | # installer components 20 | ENV INSTALLER_VERSION 1.13.0-rc1 21 | ENV DOCKER_VERSION 1.13.0-rc1 22 | ENV DOCKER_MACHINE_VERSION 0.9.0-rc1 23 | ENV DOCKER_COMPOSE_VERSION 1.9.0-rc4 24 | ENV BOOT2DOCKER_ISO_VERSION $DOCKER_VERSION 25 | ENV KITEMATIC_VERSION 0.13.0-RC1 26 | ENV VIRTUALBOX_VERSION 5.1.8 27 | ENV VIRTUALBOX_REVISION 111374 28 | ENV GIT_VERSION 2.9.0 29 | ENV MIXPANEL_TOKEN c306ae65c33d7d09fe3e546f36493a6e 30 | 31 | RUN mkdir /bundle 32 | 33 | WORKDIR /bundle 34 | 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" && \ 40 | unzip dockerbins.zip && \ 41 | mv docker/docker.exe . && \ 42 | rm -r docker/ dockerbins.zip 43 | 44 | RUN curl -fsSL -o docker-machine.exe "https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-Windows-x86_64.exe" 45 | 46 | RUN curl -fsSL -o docker-compose.exe "https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-Windows-x86_64.exe" 47 | 48 | RUN curl -fsSL -o boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v$BOOT2DOCKER_ISO_VERSION/boot2docker.iso 49 | 50 | RUN curl -fsSL -o kitematic.zip "https://github.com/kitematic/kitematic/releases/download/v$KITEMATIC_VERSION/Kitematic-$KITEMATIC_VERSION-Windows.zip" && \ 51 | mkdir kitematic && \ 52 | cd kitematic && \ 53 | unzip ../kitematic.zip && \ 54 | rm ../kitematic.zip 55 | 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" 56 | RUN curl -fsSL -o virtualbox.exe "http://download.virtualbox.org/virtualbox/$VIRTUALBOX_VERSION/VirtualBox-$VIRTUALBOX_VERSION-$VIRTUALBOX_REVISION-Win.exe" 57 | RUN wine virtualbox.exe -extract -silent -path . && \ 58 | rm virtualbox.exe && \ 59 | rm *x86.msi && \ 60 | mv *_amd64.msi VirtualBox_amd64.msi 61 | 62 | # Add installer resources 63 | COPY windows /installer 64 | 65 | WORKDIR /installer 66 | RUN rm -rf /tmp/.wine-0/ 67 | RUN wine ../innosetup/ISCC.exe Toolbox.iss /DMyAppVersion=$INSTALLER_VERSION /DMixpanelToken=$MIXPANEL_TOKEN 68 | -------------------------------------------------------------------------------- /windows/start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong in step ´$STEP´... Press any key to continue..."' EXIT 4 | 5 | # TODO: I'm sure this is not very robust. But, it is needed for now to ensure 6 | # that binaries provided by Docker Toolbox over-ride binaries provided by 7 | # Docker for Windows when launching using the Quickstart. 8 | export PATH="/c/Program Files/Docker Toolbox:$PATH" 9 | VM=${DOCKER_MACHINE_NAME-default} 10 | DOCKER_MACHINE=./docker-machine.exe 11 | 12 | STEP="Looking for vboxmanage.exe" 13 | if [ ! -z "$VBOX_MSI_INSTALL_PATH" ]; then 14 | VBOXMANAGE="${VBOX_MSI_INSTALL_PATH}VBoxManage.exe" 15 | else 16 | VBOXMANAGE="${VBOX_INSTALL_PATH}VBoxManage.exe" 17 | fi 18 | 19 | BLUE='\033[1;34m' 20 | GREEN='\033[0;32m' 21 | NC='\033[0m' 22 | 23 | #clear all_proxy if not socks address 24 | if [[ $ALL_PROXY != socks* ]]; then 25 | unset ALL_PROXY 26 | fi 27 | if [[ $all_proxy != socks* ]]; then 28 | unset all_proxy 29 | fi 30 | 31 | if [ ! -f "${DOCKER_MACHINE}" ]; then 32 | echo "Docker Machine is not installed. Please re-run the Toolbox Installer and try again." 33 | exit 1 34 | fi 35 | 36 | if [ ! -f "${VBOXMANAGE}" ]; then 37 | echo "VirtualBox is not installed. Please re-run the Toolbox Installer and try again." 38 | exit 1 39 | fi 40 | 41 | "${VBOXMANAGE}" list vms | grep \""${VM}"\" &> /dev/null 42 | VM_EXISTS_CODE=$? 43 | 44 | set -e 45 | 46 | STEP="Checking if machine $VM exists" 47 | if [ $VM_EXISTS_CODE -eq 1 ]; then 48 | "${DOCKER_MACHINE}" rm -f "${VM}" &> /dev/null || : 49 | rm -rf ~/.docker/machine/machines/"${VM}" 50 | #set proxy variables if they exists 51 | if [ "${HTTP_PROXY}" ]; then 52 | PROXY_ENV="$PROXY_ENV --engine-env HTTP_PROXY=$HTTP_PROXY" 53 | fi 54 | if [ "${HTTPS_PROXY}" ]; then 55 | PROXY_ENV="$PROXY_ENV --engine-env HTTPS_PROXY=$HTTPS_PROXY" 56 | fi 57 | if [ "${NO_PROXY}" ]; then 58 | PROXY_ENV="$PROXY_ENV --engine-env NO_PROXY=$NO_PROXY" 59 | fi 60 | "${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV "${VM}" 61 | fi 62 | 63 | STEP="Checking status on $VM" 64 | VM_STATUS="$(${DOCKER_MACHINE} status ${VM} 2>&1)" 65 | if [ "${VM_STATUS}" != "Running" ]; then 66 | "${DOCKER_MACHINE}" start "${VM}" 67 | yes | "${DOCKER_MACHINE}" regenerate-certs "${VM}" 68 | fi 69 | 70 | STEP="Setting env" 71 | eval "$(${DOCKER_MACHINE} env --shell=bash --no-proxy ${VM})" 72 | 73 | STEP="Finalize" 74 | clear 75 | cat << EOF 76 | 77 | 78 | ## . 79 | ## ## ## == 80 | ## ## ## ## ## === 81 | /"""""""""""""""""\___/ === 82 | ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ 83 | \______ o __/ 84 | \ \ __/ 85 | \____\_______/ 86 | 87 | EOF 88 | echo -e "${BLUE}docker${NC} is configured to use the ${GREEN}${VM}${NC} machine with IP ${GREEN}$(${DOCKER_MACHINE} ip ${VM})${NC}" 89 | echo "For help getting started, check out the docs at https://docs.docker.com" 90 | echo 91 | cd 92 | 93 | docker () { 94 | MSYS_NO_PATHCONV=1 docker.exe "$@" 95 | } 96 | export -f docker 97 | 98 | if [ $# -eq 0 ]; then 99 | echo "Start interactive shell" 100 | exec "$BASH" --login -i 101 | else 102 | echo "Start shell with command" 103 | exec "$BASH" -c "$*" 104 | fi 105 | -------------------------------------------------------------------------------- /osx/installerplugins/common/mixpanel.h: -------------------------------------------------------------------------------- 1 | // 2 | // mixpanel.h 3 | // installerplugins 4 | // 5 | // Created by Jeffrey Dean Morgan on 8/19/15. 6 | // Copyright (c) 2015 Docker Inc. All rights reserved. 7 | // 8 | 9 | #ifndef installerplugins_mixpanel_h 10 | #define installerplugins_mixpanel_h 11 | 12 | #import 13 | 14 | @interface Mixpanel : NSObject 15 | 16 | + (void) trackEvent:(NSString *)name forPane:(InstallerPane*)pane; 17 | 18 | @end 19 | 20 | @implementation Mixpanel 21 | 22 | + (NSString *) uuid { 23 | NSString *appPath = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) objectAtIndex:0]; 24 | NSString *appDirPath = [NSString pathWithComponents:[NSArray arrayWithObjects:appPath, @"DockerToolbox", nil]]; 25 | NSString *appFilePath = [NSString pathWithComponents:[NSArray arrayWithObjects:appDirPath, @"id", nil]]; 26 | 27 | NSString *uuid = [NSString stringWithContentsOfFile:appFilePath encoding:NSUTF8StringEncoding error:nil]; 28 | if (!uuid || ![uuid length]) { 29 | uuid = [[NSUUID UUID] UUIDString]; 30 | [[NSFileManager defaultManager] createDirectoryAtPath:appDirPath withIntermediateDirectories:YES attributes:nil error:nil]; 31 | [uuid writeToFile:appFilePath atomically:YES encoding:NSUTF8StringEncoding error:nil]; 32 | } 33 | 34 | return uuid; 35 | } 36 | 37 | + (void) trackEvent:(NSString *)name forPane:(InstallerPane*)pane withProperties:(NSDictionary *)properties { 38 | BOOL trackingDisabled = [[[[pane section] sharedDictionary] objectForKey:@"disableTracking"] boolValue]; 39 | if (trackingDisabled) { 40 | return; 41 | } 42 | 43 | NSString *uuid = [self uuid]; 44 | if (!uuid) { 45 | return; 46 | } 47 | 48 | NSString *props = @""; 49 | for (NSString *key in properties) { 50 | props = [props stringByAppendingFormat:@",\"%@\": \"%@\"", key, [properties objectForKey:key]]; 51 | } 52 | 53 | NSString *osVersion = [@"Mac OS X " stringByAppendingString:[[[[NSProcessInfo processInfo] operatingSystemVersionString] componentsSeparatedByString:@" "] objectAtIndex:1]]; 54 | 55 | NSBundle* bundle = [[pane section] bundle]; 56 | NSString* token = [bundle objectForInfoDictionaryKey:@"Mixpanel Token"]; 57 | NSString* installerVersion = [bundle objectForInfoDictionaryKey:@"Installer Version"]; 58 | NSString* payload = [NSString stringWithFormat:@"{\"event\": \"%@\", \"properties\": {\"token\": \"%@\", \"distinct_id\": \"%@\", \"os\": \"darwin\", \"os version\":\"%@\", \"version\": \"%@\" %@}}", name, token, uuid, osVersion, installerVersion, props]; 59 | 60 | @try { 61 | NSData * data = [payload dataUsingEncoding:NSUTF8StringEncoding]; 62 | NSString* base64Encoded = [data base64EncodedStringWithOptions:0]; 63 | NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString: [NSString stringWithFormat:@"https://api.mixpanel.com/track/?data=%@", base64Encoded]]]; 64 | 65 | NSOperationQueue *queue = [[NSOperationQueue alloc] init]; 66 | [NSURLConnection sendAsynchronousRequest:request queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {}]; 67 | } 68 | @catch (NSException *exception) { 69 | NSLog(@"%@", @"Failed to send data."); 70 | } 71 | } 72 | 73 | + (void) trackEvent:(NSString *)name forPane:(InstallerPane*)pane { 74 | [self trackEvent:name forPane:pane withProperties:nil]; 75 | } 76 | 77 | @end 78 | #endif 79 | -------------------------------------------------------------------------------- /osx/installerplugins/overviewplugin/Base.lproj/overviewplugin.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 35 | 36 | 37 | 38 | 39 | 40 | This collects anonymous data to help us detect installation problems and improve the overall experience. We only use it to aggregate statistics and will never share it with third parties. 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 72 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /windows/modpath.iss: -------------------------------------------------------------------------------- 1 | // ---------------------------------------------------------------------------- 2 | // 3 | // Inno Setup Ver: 5.4.2 4 | // Script Version: 1.4.2 5 | // Author: Jared Breland 6 | // Homepage: http://www.legroom.net/software 7 | // License: GNU Lesser General Public License (LGPL), version 3 8 | // http://www.gnu.org/licenses/lgpl.html 9 | // 10 | // Script Function: 11 | // Allow modification of environmental path directly from Inno Setup installers 12 | // 13 | // Instructions: 14 | // Copy modpath.iss to the same directory as your setup script 15 | // 16 | // Add this statement to your [Setup] section 17 | // ChangesEnvironment=true 18 | // 19 | // Add this statement to your [Tasks] section 20 | // You can change the Description or Flags 21 | // You can change the Name, but it must match the ModPathName setting below 22 | // Name: modifypath; Description: &Add application directory to your environmental path; Flags: unchecked 23 | // 24 | // Add the following to the end of your [Code] section 25 | // ModPathName defines the name of the task defined above 26 | // ModPathType defines whether the 'user' or 'system' path will be modified; 27 | // this will default to user if anything other than system is set 28 | // setArrayLength must specify the total number of dirs to be added 29 | // Result[0] contains first directory, Result[1] contains second, etc. 30 | // const 31 | // ModPathName = 'modifypath'; 32 | // ModPathType = 'user'; 33 | // 34 | // function ModPathDir(): TArrayOfString; 35 | // begin 36 | // setArrayLength(Result, 1); 37 | // Result[0] := ExpandConstant('{app}'); 38 | // end; 39 | // #include "modpath.iss" 40 | // ---------------------------------------------------------------------------- 41 | 42 | procedure ModPath(); 43 | var 44 | oldpath: String; 45 | newpath: String; 46 | updatepath: Boolean; 47 | pathArr: TArrayOfString; 48 | aExecFile: String; 49 | aExecArr: TArrayOfString; 50 | i, d: Integer; 51 | pathdir: TArrayOfString; 52 | regroot: Integer; 53 | regpath: String; 54 | 55 | begin 56 | // Get constants from main script and adjust behavior accordingly 57 | // ModPathType MUST be 'system' or 'user'; force 'user' if invalid 58 | if ModPathType = 'system' then begin 59 | regroot := HKEY_LOCAL_MACHINE; 60 | regpath := 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment'; 61 | end else begin 62 | regroot := HKEY_CURRENT_USER; 63 | regpath := 'Environment'; 64 | end; 65 | 66 | // Get array of new directories and act on each individually 67 | pathdir := ModPathDir(); 68 | for d := 0 to GetArrayLength(pathdir)-1 do begin 69 | updatepath := true; 70 | 71 | // Modify WinNT path 72 | if UsingWinNT() = true then begin 73 | 74 | // Get current path, split into an array 75 | RegQueryStringValue(regroot, regpath, 'Path', oldpath); 76 | oldpath := oldpath + ';'; 77 | i := 0; 78 | 79 | while (Pos(';', oldpath) > 0) do begin 80 | SetArrayLength(pathArr, i+1); 81 | pathArr[i] := Copy(oldpath, 0, Pos(';', oldpath)-1); 82 | oldpath := Copy(oldpath, Pos(';', oldpath)+1, Length(oldpath)); 83 | i := i + 1; 84 | 85 | // Check if current directory matches app dir 86 | if pathdir[d] = pathArr[i-1] then begin 87 | // if uninstalling, remove dir from path 88 | if IsUninstaller() = true then begin 89 | continue; 90 | // if installing, flag that dir already exists in path 91 | end else begin 92 | updatepath := false; 93 | end; 94 | end; 95 | 96 | // Add current directory to new path 97 | if i = 1 then begin 98 | newpath := pathArr[i-1]; 99 | end else begin 100 | newpath := newpath + ';' + pathArr[i-1]; 101 | end; 102 | end; 103 | 104 | // Append app dir to path if not already included 105 | if (IsUninstaller() = false) AND (updatepath = true) then 106 | newpath := newpath + ';' + pathdir[d]; 107 | 108 | // Write new path 109 | RegWriteStringValue(regroot, regpath, 'Path', newpath); 110 | 111 | // Modify Win9x path 112 | end else begin 113 | 114 | // Convert to shortened dirname 115 | pathdir[d] := GetShortName(pathdir[d]); 116 | 117 | // If autoexec.bat exists, check if app dir already exists in path 118 | aExecFile := 'C:\AUTOEXEC.BAT'; 119 | if FileExists(aExecFile) then begin 120 | LoadStringsFromFile(aExecFile, aExecArr); 121 | for i := 0 to GetArrayLength(aExecArr)-1 do begin 122 | if IsUninstaller() = false then begin 123 | // If app dir already exists while installing, skip add 124 | if (Pos(pathdir[d], aExecArr[i]) > 0) then 125 | updatepath := false; 126 | break; 127 | end else begin 128 | // If app dir exists and = what we originally set, then delete at uninstall 129 | if aExecArr[i] = 'SET PATH=%PATH%;' + pathdir[d] then 130 | aExecArr[i] := ''; 131 | end; 132 | end; 133 | end; 134 | 135 | // If app dir not found, or autoexec.bat didn't exist, then (create and) append to current path 136 | if (IsUninstaller() = false) AND (updatepath = true) then begin 137 | SaveStringToFile(aExecFile, #13#10 + 'SET PATH=%PATH%;' + pathdir[d], True); 138 | 139 | // If uninstalling, write the full autoexec out 140 | end else begin 141 | SaveStringsToFile(aExecFile, aExecArr, False); 142 | end; 143 | end; 144 | end; 145 | end; 146 | 147 | // Split a string into an array using passed delimeter 148 | procedure MPExplode(var Dest: TArrayOfString; Text: String; Separator: String); 149 | var 150 | i: Integer; 151 | begin 152 | i := 0; 153 | repeat 154 | SetArrayLength(Dest, i+1); 155 | if Pos(Separator,Text) > 0 then begin 156 | Dest[i] := Copy(Text, 1, Pos(Separator, Text)-1); 157 | Text := Copy(Text, Pos(Separator,Text) + Length(Separator), Length(Text)); 158 | i := i + 1; 159 | end else begin 160 | Dest[i] := Text; 161 | Text := ''; 162 | end; 163 | until Length(Text)=0; 164 | end; 165 | 166 | procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); 167 | var 168 | aSelectedTasks: TArrayOfString; 169 | i: Integer; 170 | taskname: String; 171 | regpath: String; 172 | regstring: String; 173 | appid: String; 174 | begin 175 | // only run during actual uninstall 176 | if CurUninstallStep = usUninstall then begin 177 | // get list of selected tasks saved in registry at install time 178 | appid := '{#emit SetupSetting("AppId")}'; 179 | if appid = '' then appid := '{#emit SetupSetting("AppName")}'; 180 | regpath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\'+appid+'_is1'); 181 | RegQueryStringValue(HKLM, regpath, 'Inno Setup: Selected Tasks', regstring); 182 | if regstring = '' then RegQueryStringValue(HKCU, regpath, 'Inno Setup: Selected Tasks', regstring); 183 | 184 | // check each task; if matches modpath taskname, trigger patch removal 185 | if regstring <> '' then begin 186 | taskname := ModPathName; 187 | MPExplode(aSelectedTasks, regstring, ','); 188 | if GetArrayLength(aSelectedTasks) > 0 then begin 189 | for i := 0 to GetArrayLength(aSelectedTasks)-1 do begin 190 | if comparetext(aSelectedTasks[i], taskname) = 0 then 191 | ModPath(); 192 | end; 193 | end; 194 | end; 195 | end; 196 | end; 197 | -------------------------------------------------------------------------------- /osx/installerplugins/quickstartplugin/Base.lproj/quickstartplugin.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 58 | 59 | 60 | 61 | 62 | 63 | Docker Quickstart 64 | Terminal 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /Dockerfile.osx: -------------------------------------------------------------------------------- 1 | FROM debian:jessie 2 | 3 | RUN apt-get update && apt-get -y install \ 4 | autoconf build-essential curl \ 5 | libxml2-dev libssl-dev \ 6 | p7zip-full \ 7 | hfsplus hfsutils hfsprogs cpio 8 | 9 | # We need the bomutils to create the Mac OS X Bill of Materials (BOM) files. 10 | # https://github.com/hogliux/bomutils 11 | RUN curl -fsSL https://github.com/hogliux/bomutils/archive/0.2.tar.gz | tar xvz && \ 12 | cd bomutils-* && \ 13 | make && make install 14 | 15 | # Needed to pack/unpack the .pkg files 16 | RUN curl -fsSL https://github.com/mackyle/xar/archive/xar-1.6.1.tar.gz | tar xvz && \ 17 | cd xar-*/xar && \ 18 | ./autogen.sh && ./configure && \ 19 | make && make install 20 | 21 | ENV VBOX_VERSION 5.1.8 22 | ENV VBOX_REV 111374 23 | 24 | RUN curl -fsSL -o /vbox.dmg http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VirtualBox-$VBOX_VERSION-$VBOX_REV-OSX.dmg \ 25 | && echo "$(curl -fsSL 'http://download.virtualbox.org/virtualbox/'"$VBOX_VERSION"'/SHA256SUMS' | awk '$2 ~ /-OSX.dmg$/ { print $1 }') */vbox.dmg" | sha256sum -c - 26 | 27 | # Download the Docker parts 28 | 29 | ENV INSTALLER_VERSION 1.13.0-rc1 30 | ENV DOCKER_VERSION 1.13.0-rc1 31 | 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 | 36 | # Why '--strip-components 3'? The client binary is in usr/local/bin/docker in 37 | # the tar archive. If we extract directly, it will create a usr/local/bin 38 | # subdirectory (not what we want). So we use --strip-components to remove the 39 | # `usr/local/bin` part and drop the bin in the current directory. 40 | RUN curl -fsSL -o dockerbins.tgz "https://${DOCKER_ENDPOINT}/builds/Darwin/x86_64/docker-${DOCKER_VERSION}.tgz" && \ 41 | tar xvf dockerbins.tgz docker/docker --strip-components 1 && \ 42 | rm dockerbins.tgz 43 | 44 | RUN chmod +x /docker 45 | 46 | 47 | ENV DOCKER_MACHINE_VERSION 0.9.0-rc1 48 | RUN curl -fsSL -o /docker-machine https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-Darwin-x86_64 49 | 50 | RUN chmod +x /docker-machine 51 | 52 | ENV DOCKER_COMPOSE_VERSION 1.9.0-rc4 53 | RUN curl -fsSL -o /docker-compose https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-Darwin-x86_64 54 | RUN chmod +x /docker-compose 55 | 56 | ENV BOOT2DOCKER_ISO_VERSION $DOCKER_VERSION 57 | RUN curl -fsSL -o /boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v$DOCKER_VERSION/boot2docker.iso 58 | 59 | ENV KITEMATIC_VERSION 0.13.0-RC1 60 | RUN curl -fsSL -o /kitematic.zip https://github.com/kitematic/kitematic/releases/download/v$KITEMATIC_VERSION/Kitematic-$KITEMATIC_VERSION-Mac.zip 61 | 62 | ENV MIXPANEL_TOKEN c306ae65c33d7d09fe3e546f36493a6e 63 | 64 | # Extract the VirtualBox .pkg 65 | RUN mkdir -p /mpkg/vbox && \ 66 | cd /mpkg/vbox && \ 67 | 7z x /vbox.dmg -ir'!*.hfs' && \ 68 | 7z x `find . -name '*.hfs'` -ir'!*.pkg' && \ 69 | mv VirtualBox/VirtualBox.pkg . && \ 70 | rm -rf vbox.dmg && \ 71 | rm -rf `find . -name '*.hfs'` 72 | 73 | # Extract the .pkg files 74 | RUN cd /mpkg/vbox && \ 75 | mv VirtualBox.pkg /tmp && \ 76 | xar -xf /tmp/VirtualBox.pkg && \ 77 | rm -rf /tmp/VirtualBox.pkg 78 | 79 | RUN cd /mpkg/vbox && \ 80 | mv *.pkg .. && \ 81 | rm -rf vbox 82 | 83 | # Add components 84 | COPY osx/mpkg/Distribution /mpkg/Distribution 85 | 86 | # docker.pkg 87 | COPY osx/mpkg/docker.pkg /mpkg/docker.pkg 88 | RUN cd /mpkg/docker.pkg && \ 89 | mkdir rootfs && \ 90 | cd rootfs && \ 91 | mkdir -p usr/local/bin && \ 92 | mv /docker usr/local/bin/ && \ 93 | ls -al /usr/local/bin/ && \ 94 | find . | cpio -o --format odc | gzip -c > ../Payload && \ 95 | mkbom . ../Bom && \ 96 | sed -i \ 97 | -e "s/%DOCKER_NUMBER_OF_FILES%/`find . | wc -l`/g" \ 98 | -e "s/%DOCKER_INSTALL_KBYTES%/`du -sk | cut -f1`/g" \ 99 | -e "s/%DOCKER_VERSION%/$DOCKER_VERSION/g" \ 100 | ../PackageInfo /mpkg/Distribution && \ 101 | cd .. && \ 102 | rm -rf ./rootfs 103 | 104 | # kitematicapp.pkg 105 | COPY osx/mpkg/kitematicapp.pkg /mpkg/kitematicapp.pkg 106 | RUN cd /mpkg/kitematicapp.pkg && \ 107 | mkdir ./rootfs && \ 108 | cd ./rootfs && \ 109 | 7z x /kitematic.zip && \ 110 | rm -rf ./__MACOSX && \ 111 | ls -al . && \ 112 | find . | cpio -o --format odc | gzip -c > ../Payload && \ 113 | mkbom . ../Bom && \ 114 | sed -i \ 115 | -e "s/%KITEMATICAPP_NUMBER_OF_FILES%/`find . | wc -l`/g" \ 116 | -e "s/%KITEMATICAPP_INSTALL_KBYTES%/`du -sk | cut -f1`/g" \ 117 | -e "s/%KITEMATICAPP_VERSION%/$KITEMATIC_VERSION/g" \ 118 | ../PackageInfo /mpkg/Distribution && \ 119 | cd .. && \ 120 | rm -rf ./rootfs 121 | 122 | # dockermachine.pkg 123 | COPY osx/mpkg/dockermachine.pkg /mpkg/dockermachine.pkg 124 | RUN cd /mpkg/dockermachine.pkg && \ 125 | mkdir rootfs && \ 126 | cd rootfs && \ 127 | mkdir -p usr/local/bin && \ 128 | mv /docker-machine usr/local/bin/ && \ 129 | ls -al /usr/local/bin/ && \ 130 | find . | cpio -o --format odc | gzip -c > ../Payload && \ 131 | mkbom . ../Bom && \ 132 | sed -i \ 133 | -e "s/%DOCKERMACHINE_NUMBER_OF_FILES%/`find . | wc -l`/g" \ 134 | -e "s/%DOCKERMACHINE_INSTALL_KBYTES%/`du -sk | cut -f1`/g" \ 135 | -e "s/%DOCKERMACHINE_VERSION%/$DOCKER_MACHINE_VERSION/g" \ 136 | ../PackageInfo /mpkg/Distribution && \ 137 | cd .. && \ 138 | rm -rf ./rootfs 139 | 140 | # dockercompose.pkg 141 | COPY osx/mpkg/dockercompose.pkg /mpkg/dockercompose.pkg 142 | RUN cd /mpkg/dockercompose.pkg && \ 143 | mkdir rootfs && \ 144 | cd rootfs && \ 145 | mkdir -p usr/local/bin && \ 146 | mv /docker-compose usr/local/bin/ && \ 147 | ls -al /usr/local/bin/ && \ 148 | find . | cpio -o --format odc | gzip -c > ../Payload && \ 149 | mkbom . ../Bom && \ 150 | sed -i \ 151 | -e "s/%DOCKERCOMPOSE_NUMBER_OF_FILES%/`find . | wc -l`/g" \ 152 | -e "s/%DOCKERCOMPOSE_INSTALL_KBYTES%/`du -sk | cut -f1`/g" \ 153 | -e "s/%DOCKERCOMPOSE_VERSION%/$DOCKER_COMPOSE_VERSION/g" \ 154 | ../PackageInfo /mpkg/Distribution && \ 155 | cd .. && \ 156 | rm -rf ./rootfs 157 | 158 | # boot2dockeriso.pkg 159 | COPY osx/mpkg/boot2dockeriso.pkg /mpkg/boot2dockeriso.pkg 160 | RUN cd /mpkg/boot2dockeriso.pkg && \ 161 | cd Scripts && find . | cpio -o --format odc | gzip -c > ../Scripts.bin && cd .. && \ 162 | rm -r Scripts && mv Scripts.bin Scripts && \ 163 | mkdir ./rootfs && \ 164 | cd ./rootfs && \ 165 | cp /boot2docker.iso . && \ 166 | find . | cpio -o --format odc | gzip -c > ../Payload && \ 167 | mkbom . ../Bom && \ 168 | sed -i \ 169 | -e "s/%BOOT2DOCKER_ISO_NUMBER_OF_FILES%/`find . | wc -l`/g" \ 170 | -e "s/%BOOT2DOCKER_ISO_INSTALL_KBYTES%/`du -sk | cut -f1`/g" \ 171 | -e "s/%BOOT2DOCKER_ISO_VERSION%/$BOOT2DOCKER_ISO_VERSION/g" \ 172 | ../PackageInfo /mpkg/Distribution && \ 173 | cd .. && \ 174 | rm -rf ./rootfs 175 | 176 | # dockerquickstartterminalapp.pkg 177 | COPY osx/mpkg/dockerquickstartterminalapp.pkg /mpkg/dockerquickstartterminalapp.pkg 178 | COPY osx/mpkg/quickstart.app /mpkg/quickstart.app 179 | RUN cd /mpkg/dockerquickstartterminalapp.pkg && \ 180 | mkdir ./rootfs && \ 181 | cd ./rootfs && \ 182 | mv /mpkg/quickstart.app ./Docker\ Quickstart\ Terminal.app && \ 183 | find . | cpio -o --format odc | gzip -c > ../Payload && \ 184 | mkbom . ../Bom && \ 185 | sed -i \ 186 | -e "s/%DOCKERQUICKSTARTTERMINALAPP_NUMBER_OF_FILES%/`find . | wc -l`/g" \ 187 | -e "s/%DOCKERQUICKSTARTTERMINALAPP_INSTALL_KBYTES%/`du -sk | cut -f1`/g" \ 188 | -e "s/%DOCKERQUICKSTARTTERMINALAPP_VERSION%/$INSTALLER_VERSION/g" \ 189 | ../PackageInfo /mpkg/Distribution && \ 190 | cd .. && \ 191 | rm -rf ./rootfs 192 | 193 | COPY osx/mpkg/Resources /mpkg/Resources 194 | COPY osx/mpkg/Plugins /mpkg/Plugins 195 | 196 | RUN sed -i \ 197 | -e "s/%MIXPANEL_TOKEN%/$MIXPANEL_TOKEN/g" \ 198 | -e "s/%INSTALLER_VERSION%/$INSTALLER_VERSION/g" \ 199 | mpkg/Plugins/*.bundle/Contents/Info.plist 200 | RUN sed -i \ 201 | -e "s/%INSTALLER_VERSION%/$INSTALLER_VERSION/g" \ 202 | mpkg/Plugins/*.bundle/Contents/Resources/*.html 203 | RUN sed -i \ 204 | -e "s/%INSTALLER_VERSION%/$INSTALLER_VERSION/g" \ 205 | mpkg/Resources/en.lproj/welcome.rtfd/TXT.rtf 206 | RUN sed -i \ 207 | -e "s/%VBOX_VERSION%/$VBOX_VERSION/g" \ 208 | /mpkg/Distribution && \ 209 | sed -i \ 210 | -e "s/%VBOX_VERSION%/$VBOX_VERSION/g" \ 211 | -e "s/%DOCKER_VERSION%/$DOCKER_VERSION/g" \ 212 | -e "s/%DOCKERMACHINE_VERSION%/$DOCKER_MACHINE_VERSION/g" \ 213 | -e "s/%DOCKERCOMPOSE_VERSION%/$DOCKER_COMPOSE_VERSION/g" \ 214 | -e "s/%BOOT2DOCKER_ISO_VERSION%/$BOOT2DOCKER_ISO_VERSION/g" \ 215 | -e "s/%DOCKERQUICKSTARTTERMINALAPP_VERSION%/$INSTALLER_VERSION/g" \ 216 | -e "s/%KITEMATICAPP_VERSION%/$KITEMATIC_VERSION/g" \ 217 | mpkg/Resources/en.lproj/Localizable.strings 218 | 219 | # Repackage back. Yes, --compression=none is mandatory. 220 | # or this won't install in OSX. 221 | RUN cd /mpkg && \ 222 | xar -c --compression=none -f /DockerToolbox.pkg . 223 | -------------------------------------------------------------------------------- /osx/mpkg/Distribution: -------------------------------------------------------------------------------- 1 | 2 | 3 | docker_title 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | #docker.pkg 26 | 27 | 28 | 29 | #dockercompose.pkg 30 | 31 | 32 | 33 | #kitematicapp.pkg 34 | 35 | 36 | 37 | 38 | #VBoxKEXTs.pkg 39 | #VirtualBox.pkg 40 | #VirtualBoxCLI.pkg 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | #boot2dockeriso.pkg 62 | 63 | 64 | 65 | 66 | 67 | 68 | #dockerquickstartterminalapp.pkg 69 | 70 | 71 | 72 | #kitematicapp.pkg 73 | 74 | 75 | 76 | 77 | 78 | 79 | #dockermachine.pkg 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 161 | 162 | -------------------------------------------------------------------------------- /LICENSE/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | https://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | Copyright 2013-2015 Docker, Inc. 180 | 181 | Licensed under the Apache License, Version 2.0 (the "License"); 182 | you may not use this file except in compliance with the License. 183 | You may obtain a copy of the License at 184 | 185 | https://www.apache.org/licenses/LICENSE-2.0 186 | 187 | Unless required by applicable law or agreed to in writing, software 188 | distributed under the License is distributed on an "AS IS" BASIS, 189 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 | See the License for the specific language governing permissions and 191 | limitations under the License. 192 | -------------------------------------------------------------------------------- /windows/Toolbox.iss: -------------------------------------------------------------------------------- 1 | #define MyAppName "Docker Toolbox" 2 | #define MyAppPublisher "Docker" 3 | #define MyAppURL "https://docker.com" 4 | #define MyAppContact "https://docker.com" 5 | 6 | #define b2dIsoPath "..\bundle\boot2docker.iso" 7 | #define dockerCli "..\bundle\docker.exe" 8 | #define dockerMachineCli "..\bundle\docker-machine.exe" 9 | #define dockerComposeCli "..\bundle\docker-compose.exe" 10 | #define kitematic "..\bundle\kitematic" 11 | #define git "..\bundle\Git.exe" 12 | #define virtualBoxCommon "..\bundle\common.cab" 13 | #define virtualBoxMsi "..\bundle\VirtualBox_amd64.msi" 14 | 15 | [Setup] 16 | AppCopyright={#MyAppPublisher} 17 | AppId={{FC4417F0-D7F3-48DB-BCE1-F5ED5BAFFD91} 18 | AppContact={#MyAppContact} 19 | AppComments={#MyAppURL} 20 | AppName={#MyAppName} 21 | AppVersion={#MyAppVersion} 22 | AppPublisher={#MyAppPublisher} 23 | AppPublisherURL={#MyAppURL} 24 | AppSupportURL={#MyAppURL} 25 | AppUpdatesURL={#MyAppURL} 26 | ArchitecturesAllowed=x64 27 | ArchitecturesInstallIn64BitMode=x64 28 | DefaultDirName={pf}\{#MyAppName} 29 | DefaultGroupName=Docker 30 | DisableProgramGroupPage=yes 31 | DisableWelcomePage=no 32 | OutputBaseFilename=DockerToolbox 33 | Compression=lzma 34 | SolidCompression=yes 35 | WizardImageFile=windows-installer-side.bmp 36 | WizardSmallImageFile=windows-installer-logo.bmp 37 | WizardImageStretch=yes 38 | UninstallDisplayIcon={app}\unins000.exe 39 | SetupIconFile=toolbox.ico 40 | ChangesEnvironment=true 41 | 42 | [Languages] 43 | Name: "english"; MessagesFile: "compiler:Default.isl" 44 | 45 | [Types] 46 | Name: "full"; Description: "Full installation" 47 | Name: "custom"; Description: "Custom installation"; Flags: iscustom 48 | 49 | [Run] 50 | Filename: "{win}\explorer.exe"; Parameters: "{userprograms}\Docker\"; Flags: postinstall skipifsilent; Description: "View Shortcuts in File Explorer" 51 | 52 | [Tasks] 53 | Name: desktopicon; Description: "{cm:CreateDesktopIcon}" 54 | Name: modifypath; Description: "Add docker binaries to &PATH" 55 | Name: upgradevm; Description: "Upgrade Boot2Docker VM" 56 | Name: vbox_ndis5; Description: "Install VirtualBox with NDIS5 driver[default NDIS6]"; Components: VirtualBox; Flags: unchecked 57 | 58 | [Components] 59 | Name: "Docker"; Description: "Docker Client for Windows" ; Types: full custom; Flags: fixed 60 | Name: "DockerMachine"; Description: "Docker Machine for Windows" ; Types: full custom; Flags: fixed 61 | Name: "DockerCompose"; Description: "Docker Compose for Windows" ; Types: full custom 62 | Name: "VirtualBox"; Description: "VirtualBox"; Types: full custom; Flags: disablenouninstallwarning 63 | Name: "Kitematic"; Description: "Kitematic for Windows (Alpha)" ; Types: full custom 64 | Name: "Git"; Description: "Git for Windows"; Types: full custom; Flags: disablenouninstallwarning 65 | 66 | [Files] 67 | Source: ".\docker-quickstart-terminal.ico"; DestDir: "{app}"; Flags: ignoreversion 68 | Source: "{#dockerCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker" 69 | Source: ".\start.sh"; DestDir: "{app}"; Flags: ignoreversion; Components: "Docker" 70 | Source: "{#dockerMachineCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "DockerMachine" 71 | Source: "{#dockerComposeCli}"; DestDir: "{app}"; Flags: ignoreversion; Components: "DockerCompose" 72 | Source: "{#kitematic}\*"; DestDir: "{app}\kitematic"; Flags: ignoreversion recursesubdirs; Components: "Kitematic" 73 | Source: "{#b2dIsoPath}"; DestDir: "{app}"; Flags: ignoreversion; Components: "DockerMachine"; AfterInstall: CopyBoot2DockerISO() 74 | Source: "{#git}"; DestDir: "{app}\installers\git"; DestName: "git.exe"; AfterInstall: RunInstallGit(); Components: "Git" 75 | Source: "{#virtualBoxCommon}"; DestDir: "{app}\installers\virtualbox"; Components: "VirtualBox" 76 | Source: "{#virtualBoxMsi}"; DestDir: "{app}\installers\virtualbox"; DestName: "virtualbox.msi"; AfterInstall: RunInstallVirtualBox(); Components: "VirtualBox" 77 | 78 | [Icons] 79 | Name: "{userprograms}\Docker\Kitematic (Alpha)"; WorkingDir: "{app}"; Filename: "{app}\kitematic\Kitematic.exe"; Components: "Kitematic" 80 | Name: "{commondesktop}\Kitematic (Alpha)"; WorkingDir: "{app}"; Filename: "{app}\kitematic\Kitematic.exe"; Tasks: desktopicon; Components: "Kitematic" 81 | Name: "{userprograms}\Docker\Docker Quickstart Terminal"; WorkingDir: "{app}"; Filename: "{pf64}\Git\bin\bash.exe"; Parameters: "--login -i ""{app}\start.sh"""; IconFilename: "{app}/docker-quickstart-terminal.ico"; Components: "Docker" 82 | Name: "{commondesktop}\Docker Quickstart Terminal"; WorkingDir: "{app}"; Filename: "{pf64}\Git\bin\bash.exe"; Parameters: "--login -i ""{app}\start.sh"""; IconFilename: "{app}/docker-quickstart-terminal.ico"; Tasks: desktopicon; Components: "Docker" 83 | 84 | [UninstallRun] 85 | Filename: "{app}\docker-machine.exe"; Parameters: "rm -f default" 86 | 87 | [UninstallDelete] 88 | Type: filesandordirs; Name: "{localappdata}\..\Roaming\Kitematic" 89 | 90 | [Registry] 91 | Root: HKCU; Subkey: "Environment"; ValueType:string; ValueName:"DOCKER_TOOLBOX_INSTALL_PATH"; ValueData:"{app}" ; Flags: preservestringtype uninsdeletevalue; 92 | 93 | [Code] 94 | #include "base64.iss" 95 | #include "guid.iss" 96 | 97 | var 98 | TrackingDisabled: Boolean; 99 | TrackingCheckBox: TNewCheckBox; 100 | 101 | function uuid(): String; 102 | var 103 | dirpath: String; 104 | filepath: String; 105 | ansiresult: AnsiString; 106 | begin 107 | dirpath := ExpandConstant('{userappdata}\DockerToolbox'); 108 | filepath := dirpath + '\id.txt'; 109 | ForceDirectories(dirpath); 110 | 111 | Result := ''; 112 | if FileExists(filepath) then 113 | LoadStringFromFile(filepath, ansiresult); 114 | Result := String(ansiresult) 115 | 116 | if Length(Result) = 0 then 117 | Result := GetGuid(''); 118 | StringChangeEx(Result, '{', '', True); 119 | StringChangeEx(Result, '}', '', True); 120 | SaveStringToFile(filepath, AnsiString(Result), False); 121 | end; 122 | 123 | function WindowsVersionString(): String; 124 | var 125 | ResultCode: Integer; 126 | lines : TArrayOfString; 127 | begin 128 | if not Exec(ExpandConstant('{cmd}'), ExpandConstant('/c wmic os get caption | more +1 > C:\windows-version.txt'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then begin 129 | Result := 'N/A'; 130 | exit; 131 | end; 132 | 133 | if LoadStringsFromFile(ExpandConstant('C:\windows-version.txt'), lines) then begin 134 | Result := lines[0]; 135 | end else begin 136 | Result := 'N/A' 137 | end; 138 | end; 139 | 140 | procedure TrackEventWithProperties(name: String; properties: String); 141 | var 142 | payload: String; 143 | WinHttpReq: Variant; 144 | begin 145 | if TrackingDisabled or WizardSilent() then 146 | exit; 147 | 148 | if Length(properties) > 0 then 149 | properties := ', ' + properties; 150 | 151 | try 152 | payload := Encode64(Format(ExpandConstant('{{"event": "%s", "properties": {{"token": "{#MixpanelToken}", "distinct_id": "%s", "os": "win32", "os version": "%s", "version": "{#MyAppVersion}" %s}}'), [name, uuid(), WindowsVersionString(), properties])); 153 | WinHttpReq := CreateOleObject('WinHttp.WinHttpRequest.5.1'); 154 | WinHttpReq.Open('POST', 'https://api.mixpanel.com/track/?data=' + payload, false); 155 | WinHttpReq.SetRequestHeader('Content-Type', 'application/json'); 156 | WinHttpReq.Send(''); 157 | except 158 | end; 159 | end; 160 | 161 | procedure TrackEvent(name: String); 162 | begin 163 | TrackEventWithProperties(name, ''); 164 | end; 165 | 166 | function NeedToInstallVirtualBox(): Boolean; 167 | begin 168 | // TODO: Also compare versions 169 | Result := ( 170 | (GetEnv('VBOX_INSTALL_PATH') = '') 171 | and 172 | (GetEnv('VBOX_MSI_INSTALL_PATH') = '') 173 | ); 174 | end; 175 | 176 | function VBoxPath(): String; 177 | begin 178 | if GetEnv('VBOX_INSTALL_PATH') <> '' then 179 | Result := GetEnv('VBOX_INSTALL_PATH') 180 | else 181 | Result := GetEnv('VBOX_MSI_INSTALL_PATH') 182 | end; 183 | 184 | function NeedToInstallGit(): Boolean; 185 | begin 186 | // TODO: Find a better way to see if Git is installed 187 | Result := not DirExists('C:\Program Files\Git') or not FileExists('C:\Program Files\Git\git-bash.exe') 188 | end; 189 | 190 | procedure InitializeWizard; 191 | var 192 | WelcomePage: TWizardPage; 193 | TrackingLabel: TLabel; 194 | begin 195 | 196 | WelcomePage := PageFromID(wpWelcome) 197 | 198 | WizardForm.WelcomeLabel2.AutoSize := True; 199 | 200 | TrackingCheckBox := TNewCheckBox.Create(WizardForm); 201 | TrackingCheckBox.Top := WizardForm.WelcomeLabel2.Top + WizardForm.WelcomeLabel2.Height + 10; 202 | TrackingCheckBox.Left := WizardForm.WelcomeLabel2.Left; 203 | TrackingCheckBox.Width := WizardForm.WelcomeLabel2.Width; 204 | TrackingCheckBox.Height := 28; 205 | TrackingCheckBox.Caption := 'Help Docker improve Toolbox.'; 206 | TrackingCheckBox.Checked := True; 207 | TrackingCheckBox.Parent := WelcomePage.Surface; 208 | 209 | TrackingLabel := TLabel.Create(WizardForm); 210 | TrackingLabel.Parent := WelcomePage.Surface; 211 | TrackingLabel.Font := WizardForm.WelcomeLabel2.Font; 212 | TrackingLabel.Font.Color := clGray; 213 | TrackingLabel.Caption := 'This collects anonymous data to help us detect installation problems and improve the overall experience. We only use it to aggregate statistics and will never share it with third parties.'; 214 | TrackingLabel.WordWrap := True; 215 | TrackingLabel.Visible := True; 216 | TrackingLabel.Left := WizardForm.WelcomeLabel2.Left; 217 | TrackingLabel.Width := WizardForm.WelcomeLabel2.Width; 218 | TrackingLabel.Top := TrackingCheckBox.Top + TrackingCheckBox.Height + 5; 219 | TrackingLabel.Height := 100; 220 | 221 | // Don't do this until we can compare versions 222 | // Wizardform.ComponentsList.Checked[3] := NeedToInstallVirtualBox(); 223 | Wizardform.ComponentsList.ItemEnabled[3] := not NeedToInstallVirtualBox(); 224 | Wizardform.ComponentsList.Checked[5] := NeedToInstallGit(); 225 | end; 226 | 227 | function InitializeSetup(): boolean; 228 | begin 229 | TrackEvent('Installer Started'); 230 | Result := True; 231 | end; 232 | 233 | function NextButtonClick(CurPageID: Integer): Boolean; 234 | begin 235 | if CurPageID = wpWelcome then begin 236 | if TrackingCheckBox.Checked then begin 237 | TrackEventWithProperties('Continued from Overview', '"Tracking Enabled": "Yes"'); 238 | TrackingDisabled := False; 239 | DeleteFile(ExpandConstant('{userdocs}\..\.docker\machine\no-error-report')); 240 | end else begin 241 | TrackEventWithProperties('Continued from Overview', '"Tracking Enabled": "No"'); 242 | TrackingDisabled := True; 243 | CreateDir(ExpandConstant('{userdocs}\..\.docker\machine')); 244 | SaveStringToFile(ExpandConstant('{userdocs}\..\.docker\machine\no-error-report'), '', False); 245 | end; 246 | end; 247 | Result := True 248 | end; 249 | 250 | procedure RunInstallVirtualBox(); 251 | var 252 | ResultCode: Integer; 253 | begin 254 | WizardForm.FilenameLabel.Caption := 'installing VirtualBox' 255 | if IsTaskSelected('vbox_ndis5') then begin 256 | if not Exec(ExpandConstant('msiexec'), ExpandConstant('/qn /i "{app}\installers\virtualbox\virtualbox.msi" NETWORKTYPE=NDIS5 /norestart'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then 257 | MsgBox('virtualbox install failure', mbInformation, MB_OK); 258 | end else begin 259 | if not Exec(ExpandConstant('msiexec'), ExpandConstant('/qn /i "{app}\installers\virtualbox\virtualbox.msi" /norestart'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then 260 | MsgBox('virtualbox install failure', mbInformation, MB_OK); 261 | end; 262 | end; 263 | 264 | procedure RunInstallGit(); 265 | var 266 | ResultCode: Integer; 267 | begin 268 | WizardForm.FilenameLabel.Caption := 'installing Git for Windows' 269 | if Exec(ExpandConstant('{app}\installers\git\git.exe'), '/sp- /verysilent /norestart', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then 270 | begin 271 | // handle success if necessary; ResultCode contains the exit code 272 | //MsgBox('git installed OK', mbInformation, MB_OK); 273 | end 274 | else begin 275 | // handle failure if necessary; ResultCode contains the error code 276 | MsgBox('git install failure', mbInformation, MB_OK); 277 | end; 278 | end; 279 | 280 | procedure CopyBoot2DockerISO(); 281 | begin 282 | WizardForm.FilenameLabel.Caption := 'copying boot2docker iso' 283 | if not ForceDirectories(ExpandConstant('{userdocs}\..\.docker\machine\cache')) then 284 | MsgBox('Failed to create docker machine cache dir', mbError, MB_OK); 285 | if not FileCopy(ExpandConstant('{app}\boot2docker.iso'), ExpandConstant('{userdocs}\..\.docker\machine\cache\boot2docker.iso'), false) then 286 | MsgBox('File moving failed!', mbError, MB_OK); 287 | end; 288 | 289 | function CanUpgradeVM(): Boolean; 290 | var 291 | ResultCode: Integer; 292 | begin 293 | if NeedToInstallVirtualBox() or not FileExists(ExpandConstant('{app}\docker-machine.exe')) then begin 294 | Result := false 295 | exit 296 | end; 297 | 298 | ExecAsOriginalUser(VBoxPath() + 'VBoxManage.exe', 'showvminfo default', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) 299 | if ResultCode <> 0 then begin 300 | Result := false 301 | exit 302 | end; 303 | 304 | if not DirExists(ExpandConstant('{userdocs}\..\.docker\machine\machines\default')) then begin 305 | Result := false 306 | exit 307 | end; 308 | 309 | Result := true 310 | end; 311 | 312 | function UpgradeVM() : Boolean; 313 | var 314 | ResultCode: Integer; 315 | begin 316 | TrackEvent('VM Upgrade Started'); 317 | WizardForm.StatusLabel.Caption := 'Upgrading Docker Toolbox VM...' 318 | ExecAsOriginalUser(ExpandConstant('{app}\docker-machine.exe'), 'stop default', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) 319 | if (ResultCode = 0) or (ResultCode = 1) then 320 | begin 321 | FileCopy(ExpandConstant('{userdocs}\..\.docker\machine\cache\boot2docker.iso'), ExpandConstant('{userdocs}\..\.docker\machine\machines\default\boot2docker.iso'), false) 322 | TrackEvent('VM Upgrade Succeeded'); 323 | end 324 | else begin 325 | TrackEvent('VM Upgrade Failed'); 326 | MsgBox('VM Upgrade Failed because the VirtualBox VM could not be stopped.', mbCriticalError, MB_OK); 327 | Result := false 328 | WizardForm.Close; 329 | exit; 330 | end; 331 | Result := true 332 | end; 333 | 334 | const 335 | ModPathName = 'modifypath'; 336 | ModPathType = 'user'; 337 | 338 | function ModPathDir(): TArrayOfString; 339 | begin 340 | setArrayLength(Result, 1); 341 | Result[0] := ExpandConstant('{app}'); 342 | end; 343 | #include "modpath.iss" 344 | 345 | procedure CurStepChanged(CurStep: TSetupStep); 346 | var 347 | Success: Boolean; 348 | begin 349 | Success := True; 350 | if CurStep = ssPostInstall then 351 | begin 352 | trackEvent('Installing Files Succeeded'); 353 | if IsTaskSelected(ModPathName) then 354 | ModPath(); 355 | if not WizardSilent() then 356 | begin 357 | if IsTaskSelected('upgradevm') then 358 | begin 359 | if CanUpgradeVM() then begin 360 | Success := UpgradeVM(); 361 | end; 362 | end; 363 | end; 364 | 365 | if Success then 366 | trackEvent('Installer Finished'); 367 | end; 368 | end; 369 | -------------------------------------------------------------------------------- /LICENSE/ORACLE_VIRTUALBOX_LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /osx/installerplugins/installerplugins.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1B4C91B91B85198100A06068 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1B4C91B71B85198100A06068 /* InfoPlist.strings */; }; 11 | 1B4C91BC1B85198100A06068 /* quickstartpluginPane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1B4C91BB1B85198100A06068 /* quickstartpluginPane.m */; }; 12 | 1B4C91BF1B85198100A06068 /* quickstartplugin.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1B4C91BD1B85198100A06068 /* quickstartplugin.xib */; }; 13 | 1B4C91C21B85198100A06068 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1B4C91C01B85198100A06068 /* Localizable.strings */; }; 14 | 1B4C91C41B85198100A06068 /* InstallerSections.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1B4C91C31B85198100A06068 /* InstallerSections.plist */; }; 15 | 1B8417E91B85261F00B1FA4D /* kitematic.png in Resources */ = {isa = PBXBuildFile; fileRef = 1B8417E71B85261F00B1FA4D /* kitematic.png */; }; 16 | 1B8417EA1B85261F00B1FA4D /* quickstart.png in Resources */ = {isa = PBXBuildFile; fileRef = 1B8417E81B85261F00B1FA4D /* quickstart.png */; }; 17 | 1BF102C11B8BDEDA00FCB650 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1BF102BF1B8BDEDA00FCB650 /* InfoPlist.strings */; }; 18 | 1BF102C41B8BDEDA00FCB650 /* overviewpluginPane.m in Sources */ = {isa = PBXBuildFile; fileRef = 1BF102C31B8BDEDA00FCB650 /* overviewpluginPane.m */; }; 19 | 1BF102C71B8BDEDA00FCB650 /* overviewplugin.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1BF102C51B8BDEDA00FCB650 /* overviewplugin.xib */; }; 20 | 1BF102CA1B8BDEDA00FCB650 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1BF102C81B8BDEDA00FCB650 /* Localizable.strings */; }; 21 | 1BF102CC1B8BDEDA00FCB650 /* InstallerSections.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1BF102CB1B8BDEDA00FCB650 /* InstallerSections.plist */; }; 22 | 1BF102D11B8BDF4D00FCB650 /* overview.html in Resources */ = {isa = PBXBuildFile; fileRef = 1BF102D01B8BDF4D00FCB650 /* overview.html */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | 1B4C915E1B85023200A06068 /* mixpanel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = mixpanel.h; path = common/mixpanel.h; sourceTree = ""; }; 27 | 1B4C91B31B85198100A06068 /* quickstartplugin.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = quickstartplugin.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | 1B4C91B61B85198100A06068 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | 1B4C91B81B85198100A06068 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 30 | 1B4C91BA1B85198100A06068 /* quickstartpluginPane.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = quickstartpluginPane.h; sourceTree = ""; }; 31 | 1B4C91BB1B85198100A06068 /* quickstartpluginPane.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = quickstartpluginPane.m; sourceTree = ""; }; 32 | 1B4C91BE1B85198100A06068 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/quickstartplugin.xib; sourceTree = ""; }; 33 | 1B4C91C11B85198100A06068 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; 34 | 1B4C91C31B85198100A06068 /* InstallerSections.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = InstallerSections.plist; sourceTree = ""; }; 35 | 1B8417E71B85261F00B1FA4D /* kitematic.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = kitematic.png; sourceTree = ""; }; 36 | 1B8417E81B85261F00B1FA4D /* quickstart.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = quickstart.png; sourceTree = ""; }; 37 | 1BF102BB1B8BDEDA00FCB650 /* overviewplugin.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = overviewplugin.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 1BF102BE1B8BDEDA00FCB650 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 1BF102C01B8BDEDA00FCB650 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 40 | 1BF102C21B8BDEDA00FCB650 /* overviewpluginPane.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = overviewpluginPane.h; sourceTree = ""; }; 41 | 1BF102C31B8BDEDA00FCB650 /* overviewpluginPane.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = overviewpluginPane.m; sourceTree = ""; }; 42 | 1BF102C61B8BDEDA00FCB650 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/overviewplugin.xib; sourceTree = ""; }; 43 | 1BF102C91B8BDEDA00FCB650 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = ""; }; 44 | 1BF102CB1B8BDEDA00FCB650 /* InstallerSections.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = InstallerSections.plist; sourceTree = ""; }; 45 | 1BF102D01B8BDF4D00FCB650 /* overview.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = overview.html; sourceTree = ""; }; 46 | /* End PBXFileReference section */ 47 | 48 | /* Begin PBXFrameworksBuildPhase section */ 49 | 1B4C91B01B85198100A06068 /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | 1BF102B81B8BDEDA00FCB650 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | /* End PBXFrameworksBuildPhase section */ 64 | 65 | /* Begin PBXGroup section */ 66 | 1B4C90691B84FDEB00A06068 = { 67 | isa = PBXGroup; 68 | children = ( 69 | 1BF102BB1B8BDEDA00FCB650 /* overviewplugin.bundle */, 70 | 1B4C91B31B85198100A06068 /* quickstartplugin.bundle */, 71 | 1BF102BC1B8BDEDA00FCB650 /* overviewplugin */, 72 | 1B4C91B41B85198100A06068 /* quickstartplugin */, 73 | 1B4C915D1B85021200A06068 /* common */, 74 | ); 75 | sourceTree = ""; 76 | }; 77 | 1B4C915D1B85021200A06068 /* common */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 1B4C915E1B85023200A06068 /* mixpanel.h */, 81 | ); 82 | name = common; 83 | sourceTree = ""; 84 | }; 85 | 1B4C91B41B85198100A06068 /* quickstartplugin */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 1B8417E71B85261F00B1FA4D /* kitematic.png */, 89 | 1B8417E81B85261F00B1FA4D /* quickstart.png */, 90 | 1B4C91BA1B85198100A06068 /* quickstartpluginPane.h */, 91 | 1B4C91BB1B85198100A06068 /* quickstartpluginPane.m */, 92 | 1B4C91BD1B85198100A06068 /* quickstartplugin.xib */, 93 | 1B4C91C01B85198100A06068 /* Localizable.strings */, 94 | 1B4C91C31B85198100A06068 /* InstallerSections.plist */, 95 | 1B4C91B51B85198100A06068 /* Supporting Files */, 96 | ); 97 | path = quickstartplugin; 98 | sourceTree = ""; 99 | }; 100 | 1B4C91B51B85198100A06068 /* Supporting Files */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 1B4C91B61B85198100A06068 /* Info.plist */, 104 | 1B4C91B71B85198100A06068 /* InfoPlist.strings */, 105 | ); 106 | name = "Supporting Files"; 107 | sourceTree = ""; 108 | }; 109 | 1BF102BC1B8BDEDA00FCB650 /* overviewplugin */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 1BF102C21B8BDEDA00FCB650 /* overviewpluginPane.h */, 113 | 1BF102C31B8BDEDA00FCB650 /* overviewpluginPane.m */, 114 | 1BF102C51B8BDEDA00FCB650 /* overviewplugin.xib */, 115 | 1BF102C81B8BDEDA00FCB650 /* Localizable.strings */, 116 | 1BF102CB1B8BDEDA00FCB650 /* InstallerSections.plist */, 117 | 1BF102D01B8BDF4D00FCB650 /* overview.html */, 118 | 1BF102BD1B8BDEDA00FCB650 /* Supporting Files */, 119 | ); 120 | path = overviewplugin; 121 | sourceTree = ""; 122 | }; 123 | 1BF102BD1B8BDEDA00FCB650 /* Supporting Files */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 1BF102BE1B8BDEDA00FCB650 /* Info.plist */, 127 | 1BF102BF1B8BDEDA00FCB650 /* InfoPlist.strings */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | /* End PBXGroup section */ 133 | 134 | /* Begin PBXNativeTarget section */ 135 | 1B4C91B21B85198100A06068 /* quickstartplugin */ = { 136 | isa = PBXNativeTarget; 137 | buildConfigurationList = 1B4C91C51B85198100A06068 /* Build configuration list for PBXNativeTarget "quickstartplugin" */; 138 | buildPhases = ( 139 | 1B4C91AF1B85198100A06068 /* Sources */, 140 | 1B4C91B01B85198100A06068 /* Frameworks */, 141 | 1B4C91B11B85198100A06068 /* Resources */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | ); 147 | name = quickstartplugin; 148 | productName = quickstartplugin; 149 | productReference = 1B4C91B31B85198100A06068 /* quickstartplugin.bundle */; 150 | productType = "com.apple.product-type.bundle"; 151 | }; 152 | 1BF102BA1B8BDEDA00FCB650 /* overviewplugin */ = { 153 | isa = PBXNativeTarget; 154 | buildConfigurationList = 1BF102CD1B8BDEDA00FCB650 /* Build configuration list for PBXNativeTarget "overviewplugin" */; 155 | buildPhases = ( 156 | 1BF102B71B8BDEDA00FCB650 /* Sources */, 157 | 1BF102B81B8BDEDA00FCB650 /* Frameworks */, 158 | 1BF102B91B8BDEDA00FCB650 /* Resources */, 159 | ); 160 | buildRules = ( 161 | ); 162 | dependencies = ( 163 | ); 164 | name = overviewplugin; 165 | productName = overviewplugin; 166 | productReference = 1BF102BB1B8BDEDA00FCB650 /* overviewplugin.bundle */; 167 | productType = "com.apple.product-type.bundle"; 168 | }; 169 | /* End PBXNativeTarget section */ 170 | 171 | /* Begin PBXProject section */ 172 | 1B4C906A1B84FDEB00A06068 /* Project object */ = { 173 | isa = PBXProject; 174 | attributes = { 175 | LastUpgradeCheck = 0700; 176 | ORGANIZATIONNAME = "Docker Inc"; 177 | TargetAttributes = { 178 | 1B4C91B21B85198100A06068 = { 179 | CreatedOnToolsVersion = 6.4; 180 | }; 181 | 1BF102BA1B8BDEDA00FCB650 = { 182 | CreatedOnToolsVersion = 6.4; 183 | }; 184 | }; 185 | }; 186 | buildConfigurationList = 1B4C906D1B84FDEB00A06068 /* Build configuration list for PBXProject "installerplugins" */; 187 | compatibilityVersion = "Xcode 3.2"; 188 | developmentRegion = English; 189 | hasScannedForEncodings = 0; 190 | knownRegions = ( 191 | en, 192 | Base, 193 | ); 194 | mainGroup = 1B4C90691B84FDEB00A06068; 195 | productRefGroup = 1B4C90691B84FDEB00A06068; 196 | projectDirPath = ""; 197 | projectRoot = ""; 198 | targets = ( 199 | 1B4C91B21B85198100A06068 /* quickstartplugin */, 200 | 1BF102BA1B8BDEDA00FCB650 /* overviewplugin */, 201 | ); 202 | }; 203 | /* End PBXProject section */ 204 | 205 | /* Begin PBXResourcesBuildPhase section */ 206 | 1B4C91B11B85198100A06068 /* Resources */ = { 207 | isa = PBXResourcesBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | 1B4C91B91B85198100A06068 /* InfoPlist.strings in Resources */, 211 | 1B4C91C21B85198100A06068 /* Localizable.strings in Resources */, 212 | 1B8417EA1B85261F00B1FA4D /* quickstart.png in Resources */, 213 | 1B4C91BF1B85198100A06068 /* quickstartplugin.xib in Resources */, 214 | 1B4C91C41B85198100A06068 /* InstallerSections.plist in Resources */, 215 | 1B8417E91B85261F00B1FA4D /* kitematic.png in Resources */, 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | }; 219 | 1BF102B91B8BDEDA00FCB650 /* Resources */ = { 220 | isa = PBXResourcesBuildPhase; 221 | buildActionMask = 2147483647; 222 | files = ( 223 | 1BF102C11B8BDEDA00FCB650 /* InfoPlist.strings in Resources */, 224 | 1BF102CA1B8BDEDA00FCB650 /* Localizable.strings in Resources */, 225 | 1BF102C71B8BDEDA00FCB650 /* overviewplugin.xib in Resources */, 226 | 1BF102CC1B8BDEDA00FCB650 /* InstallerSections.plist in Resources */, 227 | 1BF102D11B8BDF4D00FCB650 /* overview.html in Resources */, 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | }; 231 | /* End PBXResourcesBuildPhase section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | 1B4C91AF1B85198100A06068 /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | 1B4C91BC1B85198100A06068 /* quickstartpluginPane.m in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | 1BF102B71B8BDEDA00FCB650 /* Sources */ = { 243 | isa = PBXSourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | 1BF102C41B8BDEDA00FCB650 /* overviewpluginPane.m in Sources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXSourcesBuildPhase section */ 251 | 252 | /* Begin PBXVariantGroup section */ 253 | 1B4C91B71B85198100A06068 /* InfoPlist.strings */ = { 254 | isa = PBXVariantGroup; 255 | children = ( 256 | 1B4C91B81B85198100A06068 /* en */, 257 | ); 258 | name = InfoPlist.strings; 259 | sourceTree = ""; 260 | }; 261 | 1B4C91BD1B85198100A06068 /* quickstartplugin.xib */ = { 262 | isa = PBXVariantGroup; 263 | children = ( 264 | 1B4C91BE1B85198100A06068 /* Base */, 265 | ); 266 | name = quickstartplugin.xib; 267 | sourceTree = ""; 268 | }; 269 | 1B4C91C01B85198100A06068 /* Localizable.strings */ = { 270 | isa = PBXVariantGroup; 271 | children = ( 272 | 1B4C91C11B85198100A06068 /* en */, 273 | ); 274 | name = Localizable.strings; 275 | sourceTree = ""; 276 | }; 277 | 1BF102BF1B8BDEDA00FCB650 /* InfoPlist.strings */ = { 278 | isa = PBXVariantGroup; 279 | children = ( 280 | 1BF102C01B8BDEDA00FCB650 /* en */, 281 | ); 282 | name = InfoPlist.strings; 283 | sourceTree = ""; 284 | }; 285 | 1BF102C51B8BDEDA00FCB650 /* overviewplugin.xib */ = { 286 | isa = PBXVariantGroup; 287 | children = ( 288 | 1BF102C61B8BDEDA00FCB650 /* Base */, 289 | ); 290 | name = overviewplugin.xib; 291 | sourceTree = ""; 292 | }; 293 | 1BF102C81B8BDEDA00FCB650 /* Localizable.strings */ = { 294 | isa = PBXVariantGroup; 295 | children = ( 296 | 1BF102C91B8BDEDA00FCB650 /* en */, 297 | ); 298 | name = Localizable.strings; 299 | sourceTree = ""; 300 | }; 301 | /* End PBXVariantGroup section */ 302 | 303 | /* Begin XCBuildConfiguration section */ 304 | 1B4C90851B84FDEB00A06068 /* Debug */ = { 305 | isa = XCBuildConfiguration; 306 | buildSettings = { 307 | ALWAYS_SEARCH_USER_PATHS = NO; 308 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 309 | CLANG_CXX_LIBRARY = "libc++"; 310 | CLANG_ENABLE_MODULES = YES; 311 | CLANG_ENABLE_OBJC_ARC = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_CONSTANT_CONVERSION = YES; 314 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 315 | CLANG_WARN_EMPTY_BODY = YES; 316 | CLANG_WARN_ENUM_CONVERSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 319 | CLANG_WARN_UNREACHABLE_CODE = YES; 320 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 321 | CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/../mpkg/Plugins"; 322 | COPY_PHASE_STRIP = NO; 323 | DEBUG_INFORMATION_FORMAT = dwarf; 324 | ENABLE_STRICT_OBJC_MSGSEND = YES; 325 | ENABLE_TESTABILITY = YES; 326 | GCC_C_LANGUAGE_STANDARD = gnu99; 327 | GCC_DYNAMIC_NO_PIC = NO; 328 | GCC_NO_COMMON_BLOCKS = YES; 329 | GCC_OPTIMIZATION_LEVEL = 0; 330 | GCC_PREPROCESSOR_DEFINITIONS = ( 331 | "DEBUG=1", 332 | "$(inherited)", 333 | ); 334 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 335 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 336 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 337 | GCC_WARN_UNDECLARED_SELECTOR = YES; 338 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 339 | GCC_WARN_UNUSED_FUNCTION = YES; 340 | GCC_WARN_UNUSED_VARIABLE = YES; 341 | MACOSX_DEPLOYMENT_TARGET = 10.8; 342 | MTL_ENABLE_DEBUG_INFO = YES; 343 | ONLY_ACTIVE_ARCH = YES; 344 | SDKROOT = macosx; 345 | }; 346 | name = Debug; 347 | }; 348 | 1B4C90861B84FDEB00A06068 /* Release */ = { 349 | isa = XCBuildConfiguration; 350 | buildSettings = { 351 | ALWAYS_SEARCH_USER_PATHS = NO; 352 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 353 | CLANG_CXX_LIBRARY = "libc++"; 354 | CLANG_ENABLE_MODULES = YES; 355 | CLANG_ENABLE_OBJC_ARC = YES; 356 | CLANG_WARN_BOOL_CONVERSION = YES; 357 | CLANG_WARN_CONSTANT_CONVERSION = YES; 358 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 359 | CLANG_WARN_EMPTY_BODY = YES; 360 | CLANG_WARN_ENUM_CONVERSION = YES; 361 | CLANG_WARN_INT_CONVERSION = YES; 362 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 363 | CLANG_WARN_UNREACHABLE_CODE = YES; 364 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 365 | CONFIGURATION_BUILD_DIR = "$(PROJECT_DIR)/../mpkg/Plugins"; 366 | COPY_PHASE_STRIP = NO; 367 | DEBUG_INFORMATION_FORMAT = dwarf; 368 | ENABLE_NS_ASSERTIONS = NO; 369 | ENABLE_STRICT_OBJC_MSGSEND = YES; 370 | GCC_C_LANGUAGE_STANDARD = gnu99; 371 | GCC_NO_COMMON_BLOCKS = YES; 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | MACOSX_DEPLOYMENT_TARGET = 10.8; 379 | MTL_ENABLE_DEBUG_INFO = NO; 380 | SDKROOT = macosx; 381 | }; 382 | name = Release; 383 | }; 384 | 1B4C91C61B85198100A06068 /* Debug */ = { 385 | isa = XCBuildConfiguration; 386 | buildSettings = { 387 | COMBINE_HIDPI_IMAGES = YES; 388 | GCC_PREPROCESSOR_DEFINITIONS = ( 389 | "DEBUG=1", 390 | "$(inherited)", 391 | ); 392 | INFOPLIST_FILE = quickstartplugin/Info.plist; 393 | INSTALL_PATH = "$(HOME)/Library/Bundles"; 394 | MACOSX_DEPLOYMENT_TARGET = 10.8; 395 | PRODUCT_BUNDLE_IDENTIFIER = "com.docker.$(PRODUCT_NAME:rfc1034identifier)"; 396 | PRODUCT_NAME = "$(TARGET_NAME)"; 397 | WRAPPER_EXTENSION = bundle; 398 | }; 399 | name = Debug; 400 | }; 401 | 1B4C91C71B85198100A06068 /* Release */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | COMBINE_HIDPI_IMAGES = YES; 405 | DEBUG_INFORMATION_FORMAT = dwarf; 406 | INFOPLIST_FILE = quickstartplugin/Info.plist; 407 | INSTALL_PATH = "$(HOME)/Library/Bundles"; 408 | MACOSX_DEPLOYMENT_TARGET = 10.8; 409 | PRODUCT_BUNDLE_IDENTIFIER = "com.docker.$(PRODUCT_NAME:rfc1034identifier)"; 410 | PRODUCT_NAME = "$(TARGET_NAME)"; 411 | WRAPPER_EXTENSION = bundle; 412 | }; 413 | name = Release; 414 | }; 415 | 1BF102CE1B8BDEDA00FCB650 /* Debug */ = { 416 | isa = XCBuildConfiguration; 417 | buildSettings = { 418 | COMBINE_HIDPI_IMAGES = YES; 419 | GCC_PREPROCESSOR_DEFINITIONS = ( 420 | "DEBUG=1", 421 | "$(inherited)", 422 | ); 423 | INFOPLIST_FILE = overviewplugin/Info.plist; 424 | INSTALL_PATH = "$(HOME)/Library/Bundles"; 425 | MACOSX_DEPLOYMENT_TARGET = 10.8; 426 | PRODUCT_BUNDLE_IDENTIFIER = "com.docker.$(PRODUCT_NAME:rfc1034identifier)"; 427 | PRODUCT_NAME = "$(TARGET_NAME)"; 428 | WRAPPER_EXTENSION = bundle; 429 | }; 430 | name = Debug; 431 | }; 432 | 1BF102CF1B8BDEDA00FCB650 /* Release */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | COMBINE_HIDPI_IMAGES = YES; 436 | DEBUG_INFORMATION_FORMAT = dwarf; 437 | INFOPLIST_FILE = overviewplugin/Info.plist; 438 | INSTALL_PATH = "$(HOME)/Library/Bundles"; 439 | MACOSX_DEPLOYMENT_TARGET = 10.8; 440 | PRODUCT_BUNDLE_IDENTIFIER = "com.docker.$(PRODUCT_NAME:rfc1034identifier)"; 441 | PRODUCT_NAME = "$(TARGET_NAME)"; 442 | WRAPPER_EXTENSION = bundle; 443 | }; 444 | name = Release; 445 | }; 446 | /* End XCBuildConfiguration section */ 447 | 448 | /* Begin XCConfigurationList section */ 449 | 1B4C906D1B84FDEB00A06068 /* Build configuration list for PBXProject "installerplugins" */ = { 450 | isa = XCConfigurationList; 451 | buildConfigurations = ( 452 | 1B4C90851B84FDEB00A06068 /* Debug */, 453 | 1B4C90861B84FDEB00A06068 /* Release */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 1B4C91C51B85198100A06068 /* Build configuration list for PBXNativeTarget "quickstartplugin" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 1B4C91C61B85198100A06068 /* Debug */, 462 | 1B4C91C71B85198100A06068 /* Release */, 463 | ); 464 | defaultConfigurationIsVisible = 0; 465 | defaultConfigurationName = Release; 466 | }; 467 | 1BF102CD1B8BDEDA00FCB650 /* Build configuration list for PBXNativeTarget "overviewplugin" */ = { 468 | isa = XCConfigurationList; 469 | buildConfigurations = ( 470 | 1BF102CE1B8BDEDA00FCB650 /* Debug */, 471 | 1BF102CF1B8BDEDA00FCB650 /* Release */, 472 | ); 473 | defaultConfigurationIsVisible = 0; 474 | defaultConfigurationName = Release; 475 | }; 476 | /* End XCConfigurationList section */ 477 | }; 478 | rootObject = 1B4C906A1B84FDEB00A06068 /* Project object */; 479 | } 480 | --------------------------------------------------------------------------------