Skip to content

Instantly share code, notes, and snippets.

@ksoichiro
Last active August 29, 2015 14:00
Show Gist options
  • Save ksoichiro/11196195 to your computer and use it in GitHub Desktop.
Save ksoichiro/11196195 to your computer and use it in GitHub Desktop.
Vagrant provisioning script for using Docker
#!/usr/bin/env bash
apt-get update
apt-get install -y git build-essential libssl-dev
apt-get install -y curl
curl -sSL https://get.rvm.io | bash -s stable
source /usr/local/rvm/scripts/rvm
rvm requirements
rvm install 2.0.0-p353
rvm use 2.0.0-p353
echo 'source /usr/local/rvm/scripts/rvm' >> ~vagrant/.bashrc
apt-get install -y linux-image-generic-lts-raring linux-headers-generic-lts-raring
curl -s https://get.docker.io/ubuntu/ | sudo sh
# vagrant ssh
# sudo docker run -i -t ubuntu /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment