Coder Social home page Coder Social logo

packer-web's Introduction

Packer PHP vagrant box builder

Introduction

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.

Boxes

virtualbox-web-jessie-php56

  • Debian 8 "jessie"
  • MariaDB 10
  • Apache 2.4
  • PHP 5.6 w/ extensions: apcu, curl, gd, imagick, ldap, mcrypt, mysqlnd, sqlite, tidy

virtualbox-web-jessie-hhvm

  • Debian 8 "jessie"
  • MariaDB 10
  • nginx 1.6
  • HHVM

Usage

Building

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

Benchmarking

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.

packer-web's People

Contributors

halkyon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.