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

mike182uk/magento-dev-vagrant-chef-solo

Repository files navigation

⚠️ This project is no longer maintained

Magento development box with Vagrant and Chef Solo

Development box configured to run Magento CE.

  • Ubuntu 14.04 LTS
  • All Magento CE required PHP extensions installed:
    • PDO_MySQL
    • simplexml
    • mcrypt
    • hash
    • GD
    • Dom
    • iconv
    • curl
    • SOAP
  • Other miscellaneous packages installed:
    • vim
  • Apache virtual host + MySQL database setup
    • access via www.magento.dev or magento.dev on the host machine
    • database details:
      • database: magentodb
      • user: magento_user
      • password: magento_pass
    • database can be accessed from the host machine:
      • host: 10.10.10.2
      • use user + password above
    • root user for the database is:
      • user: root
      • password: root
  • Sample composer.json includes:
    • QA + static analysis tools (PHPUnit, PHP_CodeSniffer etc.)
    • miscellaneous magento dev tools (n98-magerun etc.)
  • XDebug installed and setup to allow remote debugging
  • Includes script to install Magento CE 1.9.2.1 + sample data
    • n98-magerun used to install magento + sample data
    • installation settings can be changed in .n98-magerun.yaml
    • default admin user:
      • user: admin
      • password: password123

Prerequisites

Usage

Setup and provision the box:

vagrant up

Install composer dependencies (from the host):

composer install --prefer-dist

Install Magento CE 1.9.1.0 + sample data (make sure you modify the installation settings to suit in .n98-magerun.yaml before running this)

vagrant ssh -c "~/install-magento.sh"

You should now be able to access the magento store at http://www.magento.dev.

FAQ's

How can i speed up provisioning?

At the top of the Vagrantfile there is the constant USE_PRECONFIGURED_LAMP_BOX which is set to false by default. If you set this to true a preconfigured LAMP base box will be used instead of a blank ubuntu base box. You should still leave the default recipes in the run list so any config values are set accordingly but any packages that these recipes install will already be installed on the base box speeding up provisioning significantly. You can see more information about the preconfigured base box here.

Notes

I have only tested this on OS X (>=10.9). In theory it should work on most operating systems, although Windows will probably have a problem using NFS for synced folders. See NFS alternatives here.

About

Development box configured to run Magento CE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published