Skip to content

Instantly share code, notes, and snippets.

@zph
Created December 3, 2013 18:20
Show Gist options
  • Save zph/7774624 to your computer and use it in GitHub Desktop.
Save zph/7774624 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Guide: http://docs.docker.io/en/latest/installation/ubuntulinux/#ubuntu-raring-13-04-64-bit
# AUFS support is optional as of version 0.7, but it’s still available as a driver and we recommend using it if you can.
sudo apt-get update
sudo apt-get install linux-image-extra-`uname -r`
# First add the Docker repository key to your local keychain. You can use the apt-key command to check the fingerprint matches: 36A1 D786 9245 C895 0F96 6E92 D857 6A8B A88D 21E9
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
# Add the Docker repository to your apt sources list, update and install the lxc-docker package.
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.provision :shell, path: "bootstrap.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment