forked from docker-php/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
27 lines (19 loc) · 672 Bytes
/
Vagrantfile
File metadata and controls
27 lines (19 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
locale-gen
apt-get update -y
apt-get install -y apt-transport-https
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list
apt-get update -y
apt-get install -y docker-engine
usermod -G docker vagrant
apt-get install -y php5-cli php5-json
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "debian/jessie64"
config.vm.provision 'shell', inline: $script
end