File tree 3 files changed +41
-2
lines changed
3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 1
1
vendor /
2
2
bin /
3
- composer.lock
3
+ composer.lock
4
+ .vagrant
Original file line number Diff line number Diff line change @@ -40,10 +40,21 @@ Usage
40
40
41
41
See [ the documentation] ( http://docker-php.readthedocs.org/en/latest/ ) .
42
42
43
+ Using Vagrant
44
+ -------------
45
+
46
+ The provisioning included does not run the ` composer install ` bit, so you'll have to do it yourself:
47
+
48
+ ```
49
+ $ vagrant up --provider=virtualbox
50
+ $ vagrant ssh
51
+ $ cd /vagrant; composer install --dev
52
+ ```
53
+
43
54
Unit Tests
44
55
----------
45
56
46
- Setup the test suite using [ Composer] ( http://getcomposer.org/ ) :
57
+ Setup the test suite using [ Composer] ( http://getcomposer.org/ ) if not already done :
47
58
48
59
```
49
60
$ composer install --dev
Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ $script = <<SCRIPT
5
+ locale-gen
6
+
7
+ apt-get update -y
8
+ apt-get install -y apt-transport-https
9
+ apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
10
+
11
+ echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list
12
+
13
+ apt-get update -y
14
+ apt-get install -y docker-engine
15
+
16
+ usermod -G docker vagrant
17
+
18
+ apt-get install -y php5-cli php5-json
19
+
20
+ curl -sS https://getcomposer.org/installer | php
21
+ mv composer.phar /usr/local/bin/composer
22
+ SCRIPT
23
+
24
+ Vagrant . configure ( 2 ) do |config |
25
+ config . vm . box = "debian/jessie64"
26
+ config . vm . provision 'shell' , inline : $script
27
+ end
You can’t perform that action at this time.
0 commit comments