Created
February 16, 2014 13:20
-
-
Save tobynet/9034123 to your computer and use it in GitHub Desktop.
Trying Docker with CoreOS and Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o xtrace # For debugging. ( abbr. set -x ) | |
set -o errexit # To exit on error. ( abbr. set -e ) | |
set -o pipefail # To exit on error in pipe | |
set -o nounset # To exit when the script to use undeclared variables (abbr. set -u) | |
TARGET_DIR=docker-using-coreos | |
if [ -d "$TARGET_DIR/.git"]; then | |
git clone https://github.com/coreos/coreos-vagrant "$TARGET_DIR" | |
fi | |
cd "$TARGET_DIR" | |
vagrant up | |
vagrant ssh -c 'cat /etc/lsb-release' | |
vagrant ssh -c 'docker run -t -i ubuntu:13.10 bash -c "cat /etc/lsb-release"' | |
echo 'DONE!!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment