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

This commit is contained in:
Jeffrey Morgan 2015-07-14 12:02:33 -07:00
commit a9a1a50124
6 changed files with 34 additions and 27 deletions

View File

@ -2,7 +2,7 @@
<installer-gui-script minSpecVersion="1"> <installer-gui-script minSpecVersion="1">
<title>docker_title</title> <title>docker_title</title>
<options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="i386"/> <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="i386"/>
<domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/> <domains enable_localSystem="true"/>
<background file="toolbox.png" alignment="bottomleft" scaling="none"/> <background file="toolbox.png" alignment="bottomleft" scaling="none"/>
<welcome file="Welcome.html" mime-type="text/html"/> <welcome file="Welcome.html" mime-type="text/html"/>
<conclusion file="Installed.html" mime-type="text/html"/> <conclusion file="Installed.html" mime-type="text/html"/>

View File

@ -1,16 +1,27 @@
#!/bin/bash
set -e
ISO=$HOME/.docker/machine/cache/boot2docker.iso ISO=$HOME/.docker/machine/cache/boot2docker.iso
VM=dev VM=dev
DOCKER_MACHINE=/usr/local/bin/docker-machine DOCKER_MACHINE=/usr/local/bin/docker-machine
BLUE='\033[0;34m'
GREEN='\033[0;32m'
NC='\033[0m'
unset DYLD_LIBRARY_PATH unset DYLD_LIBRARY_PATH
unset LD_LIBRARY_PATH unset LD_LIBRARY_PATH
clear
mkdir -p ~/.docker/machine/cache mkdir -p ~/.docker/machine/cache
if [ ! -f $ISO ]; then if [ ! -f $ISO ]; then
cp /usr/local/share/boot2docker/boot2docker.iso $ISO cp /usr/local/share/boot2docker/boot2docker.iso $ISO
fi fi
machine=$($DOCKER_MACHINE ls -q | grep "^$VM$")
machine=$($DOCKER_MACHINE ls -q | grep "^$VM$") || :
if [ -z $machine ]; then if [ -z $machine ]; then
echo "Creating Machine $VM..." echo "Creating Machine $VM..."
$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM $DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM
@ -19,10 +30,9 @@ else
fi fi
echo "Starting machine $VM..." echo "Starting machine $VM..."
$DOCKER_MACHINE start dev $DOCKER_MACHINE start $VM
echo "Setting environment variables for machine $VM..." echo "Setting environment variables for machine $VM..."
eval $($DOCKER_MACHINE env dev --shell=bash)
clear clear
cat << EOF cat << EOF
@ -39,7 +49,7 @@ cat << EOF
EOF EOF
echo "The Quick Start CLI is configured to use Docker with the $VM VM" echo -e "${BLUE}docker${NC} is configured to use the ${GREEN}dev${NC} machine with IP ${GREEN}$($DOCKER_MACHINE ip dev)${NC}"
echo echo
bash -c "$SHELL" eval $($DOCKER_MACHINE env $VM --shell=bash)

View File

@ -34,28 +34,21 @@
<div class="info"> <div class="info">
<img src="{{.Site.BaseURL}}/images/engine.png"> <img src="{{.Site.BaseURL}}/images/engine.png">
<h3>Docker Engine</h3> <h3>Docker Engine</h3>
<p>Creates and runs Docker containers.</p> <p>Create and runs Docker containers.</p>
</div> </div>
</div> </div>
<div class="item"> <div class="item">
<div class="info"> <div class="info">
<img src="{{.Site.BaseURL}}/images/machine.png"> <img src="{{.Site.BaseURL}}/images/machine.png">
<h3>Docker Machine</h3> <h3>Docker Machine</h3>
<p>Provisions Docker to local or remote machines.</p> <p>Provision Docker-ready local or remote machines.</p>
</div> </div>
</div> </div>
<div class="item"> <div class="item">
<div class="info"> <div class="info">
<img src="{{.Site.BaseURL}}/images/compose.png"> <img src="{{.Site.BaseURL}}/images/compose.png">
<h3>Docker Compose</h3> <h3>Docker Compose</h3>
<p>Define multi-container applications. (Mac OS X only)</p> <p>Define multi-container applications. (OS X only)</p>
</div>
</div>
<div class="item">
<div class="info">
<img src="{{.Site.BaseURL}}/images/swarm.png">
<h3>Docker Swarm</h3>
<p>Host clustering and container scheduling.</p>
</div> </div>
</div> </div>
<div class="item"> <div class="item">
@ -92,7 +85,7 @@
<ol> <ol>
<li>Open a terminal or the Docker CLI on your system.</li> <li>Open a terminal or the Docker CLI on your system.</li>
<li>Type the following command.<br> <li>Type the following command.<br>
<pre>docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm docker-vm</pre> <pre>docker-machine create -d virtualbox --virtualbox-import-boot2docker-vm boot2docker-vm dev</pre>
</li> </li>
<li>Use the <code>docker-machine</code> command to interact with the migrated VM. </li> <li>Use the <code>docker-machine</code> command to interact with the migrated VM. </li>
</ol> </ol>

View File

@ -290,14 +290,18 @@ table {
-ms-flex-flow: row wrap; -ms-flex-flow: row wrap;
flex-flow: row wrap; flex-flow: row wrap;
} }
.content .items .item {
text-align: center;
}
.content .items .item img { .content .items .item img {
width: 100px; width: 100px;
height: auto; height: auto;
} }
.content .items .item .info { .content .items .item .info {
padding-right: 1rem; padding-right: 1.5rem;
} }
.content .documentation { .content .documentation {
text-align: center;
padding: 2rem 0; padding: 2rem 0;
} }
.content .documentation h3 { .content .documentation h3 {
@ -309,8 +313,7 @@ table {
} }
.content .documentation .cta .btn { .content .documentation .cta .btn {
display: inline-block; display: inline-block;
margin-right: 1rem; margin: 0.5rem;
margin-bottom: 1rem;
transition: all 100ms; transition: all 100ms;
background-color: #ff992e; background-color: #ff992e;
box-shadow: 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.05); box-shadow: 0.4rem 0.4rem 0 rgba(0, 0, 0, 0.05);
@ -348,8 +351,8 @@ table {
} }
@media screen and (min-width: 500px) { @media screen and (min-width: 500px) {
.items .item { .items .item {
max-width: 20%; max-width: 25%;
min-width: 140px; min-width: 160px;
} }
} }
.footer { .footer {

View File

@ -142,16 +142,18 @@
.flex-display(); .flex-display();
.flex-flow(row wrap); .flex-flow(row wrap);
.item { .item {
text-align: center;
img { img {
width: 100px; width: 100px;
height: auto; height: auto;
} }
.info { .info {
padding-right: 1rem; padding-right: 1.5rem;
} }
} }
} }
.documentation { .documentation {
text-align: center;
padding: 2rem 0; padding: 2rem 0;
h3 { h3 {
color: fade(white, 70%); color: fade(white, 70%);
@ -161,8 +163,7 @@
padding: 1rem 0 0 0; padding: 1rem 0 0 0;
.btn { .btn {
display: inline-block; display: inline-block;
margin-right: 1rem; margin: 0.5rem;
margin-bottom: 1rem;
transition: all 100ms; transition: all 100ms;
background-color: @brand-orange; background-color: @brand-orange;
box-shadow: 0.4rem 0.4rem 0 fade(black, 5%); box-shadow: 0.4rem 0.4rem 0 fade(black, 5%);
@ -212,8 +213,8 @@
@media screen and (min-width: 500px) { @media screen and (min-width: 500px) {
.items { .items {
.item { .item {
max-width: 20%; max-width: 25%;
min-width: 140px; min-width: 160px;
} }
} }
} }