Last active
January 25, 2017 18:59
-
-
Save bradfordpythian/f769be513614a1dc942f0a0ea95a5029 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 Setup Verification Steps
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
# Verification steps after default xenial_setup.sh | |
[ -z `which vboxmanage` ] && echo "VirtualBox not installed correctly" && exit 1 | |
[ -z `which vagrant` ] && echo "Vagrant not installed correctly" && exit 1 | |
[ -z `which ansible` ] && echo "Ansible not installed correctly" && exit 1 | |
[ -z `which docker` ] && echo "Docker not installed correctly" && exit 1 | |
vboxmanage --version | |
vagrant --version | |
ansible --version | |
docker --version | |
# Test that vagrant is working | |
# | |
cd /tmp | |
rm -f VagrantFile | |
vagrant init minimal/xenial64 | |
vagrant up | |
vagrant ssh -c 'uname -a' | |
# Connect via ssh directly | |
vagrant ssh-config > config.ssh | |
ssh -F config.ssh default -c 'uname -a' | |
vagrant halt | |
# | |
# Test that Docker is working | |
# | |
sudo service docker start | |
sudo docker run hello-world | |
# | |
# Test Docker + MySQL is working | |
# SEE: https://github.com/datacharmer/mysql-docker-minimal | |
sudo docker create --name mysql57 -v /opt/mysql datacharmer/mysql-minimal-5.7 | |
sudo docker run -ti --volumes-from mysql57 --name my57 datacharmer/my-ubuntu bash | |
# | |
# Test that MySQL Sandbox is working | |
# | |
make_sandbox 5.6.35 -- --no_confirm | |
cd $HOME/sandboxes/msb_5_6_35 | |
./use -e "SELECT VERSION()" | |
$HOME/sandboxes/stop_all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment