Using packer.io, build and provision a Vagrant box capable of running a LAMP stack application.
This also puts a copy of SilverStripe into the /var/www
webroot on each box with some fake pages for testing.
Also bundled is a build-minimal.json
file for building boxes with only VirtualBox Guest Additions on them. Useful if you just want to start from scratch.
- Debian 8 "jessie"
- MariaDB 10
- Apache 2.4
- PHP 5.6 w/ extensions: apcu, curl, gd, imagick, ldap, mcrypt, mysqlnd, sqlite, tidy
- Debian 8 "jessie"
- MariaDB 10
- nginx 1.6
- HHVM
Build a specific box:
packer build -only="virtualbox-web-jessie-php56" build.json
Build multiple boxes at once:
packer build -only="virtualbox-web-jessie-php56,virtualbox-web-jessie-hhvm" build.json
Build everything by leaving out the only
argument:
packer build build.json
Build minimal boxes with only VirtualBox Guest Additions installed on them:
packer build build-minimal.json
A test.sh
script is provided which, when run, will go through each vagrant.box
output artifact, start
the box and run some siege
benchmarks on each box. Each box is allocated 2 virtual CPU cores and 2GB of RAM.
This is useful for testing raw application performance on different versions of PHP.
The results (in CSV format) will be placed into a test-results/
directory.