mirror of https://github.com/docker/docs.git
Fixes & improvements for initial testing on Mac OS X
This commit is contained in:
parent
a3151bbc4e
commit
f0042b264f
|
|
@ -24,7 +24,7 @@
|
|||
<choice id="choiceDockerComposeCLI" title="choiceDockerComposeCLI_title" description="choiceDockerComposeCLI_msg" start_selected="true" start_enabled="true" start_visible="true">
|
||||
<pkg-ref id="io.docker.pkg.dockercompose"/>
|
||||
</choice>
|
||||
<choice id="choiceBoot2DockerISO" title="choiceBoot2DockerISO_title" description="choiceBoot2DockerISO_msg" start_selected="true" start_enabled="true" start_visible="true">
|
||||
<choice id="choiceBoot2DockerISO" title="choiceBoot2DockerISO_title" description="choiceBoot2DockerISO_msg" start_selected="true" start_enabled="true" start_visible="false">
|
||||
<pkg-ref id="io.boot2dockeriso.pkg.boot2dockeriso"/>
|
||||
</choice>
|
||||
<choice id="choiceDockerCLIAPP" title="choiceDockerCLIAPP_title" description="choiceDockerCLIAPP_msg" start_selected="true" start_enabled="true" start_visible="true">
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1,44 @@
|
|||
ISO=$HOME/.docker/machine/cache/boot2docker.iso
|
||||
VM=dev
|
||||
DOCKER_MACHINE=/usr/local/bin/docker-machine
|
||||
|
||||
unset DYLD_LIBRARY_PATH
|
||||
unset LD_LIBRARY_PATH
|
||||
|
||||
mkdir -p ~/.docker/machine/cache
|
||||
if [ ! -f $ISO ]; then
|
||||
cp /usr/local/share/boot2docker/boot2docker.iso $ISO
|
||||
fi
|
||||
|
||||
machine=$($DOCKER_MACHINE ls -q | grep "^$VM$")
|
||||
if [ -z $machine ]; then
|
||||
echo "Creating Machine $VM..."
|
||||
$DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 $VM
|
||||
else
|
||||
echo "Machine $VM already exists."
|
||||
fi
|
||||
|
||||
echo "Starting machine $VM..."
|
||||
$DOCKER_MACHINE start dev
|
||||
|
||||
echo "Setting environment variables for machine $VM..."
|
||||
eval $($DOCKER_MACHINE env dev --shell=bash)
|
||||
clear
|
||||
|
||||
cat << EOF
|
||||
## .
|
||||
## ## ## ==
|
||||
## ## ## ## ## ===
|
||||
/"""""""""""""""""\___/ ===
|
||||
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
||||
\______ o __/
|
||||
\ \ __/
|
||||
\____\_______/
|
||||
|
||||
EOF
|
||||
echo ""
|
||||
echo "Your shell is configured to use docker with the VM: $VM"
|
||||
echo "You can ssh into the VM via 'docker-machine ssh $VM'"
|
||||
echo ""
|
||||
|
||||
bash -c "$SHELL"
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 16 KiB |
|
|
@ -8,7 +8,7 @@ if [ "${USER}" != "root" ]; then
|
|||
fi
|
||||
|
||||
echo "Removing dev VirtualBox VM..."
|
||||
docker-machine rm -f dev
|
||||
docker-machine rm -f $(docker-machine ls -q)
|
||||
|
||||
echo "Removing docker binaries..."
|
||||
rm -f /usr/local/bin/docker
|
||||
|
|
|
|||
Loading…
Reference in New Issue