Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Vagrantfile improvements
Browse files Browse the repository at this point in the history
- provision installs latest version of Docker, supports multi-line Dockerfiles
- provision builds the image
- use 2 virtual CPUs
  • Loading branch information
rosenhouse committed May 16, 2015
1 parent 23a89a3 commit 1df72b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Vagrantfile
Expand Up @@ -5,13 +5,17 @@ $provision_script = <<SCRIPT
set -ex
sudo apt-get update && sudo apt-get install -y docker.io
sudo gpasswd -a vagrant docker
curl -L https://get.docker.com/ | sh
docker build -t phantomjs2 - < /vagrant/Dockerfile
echo "Docker image built."
SCRIPT

Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"

config.vm.provider "virtualbox" do |vb|
vb.memory = "8192"
vb.cpus = 2
end

config.vm.provision "shell", inline: $provision_script
Expand Down

0 comments on commit 1df72b2

Please sign in to comment.