Skip to content

johnhughes1984/mage2vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Magento 2 Vagrant Dev

A Vagrant setup for a fully featured Magento 2 CE development environment

Note: still in early stages, only basic installation instructions are provided. This has only been tested on Mac OS X

Server details

Installation

Prerequisites

  • Install Virtualbox (v5.x)

  • Install Vagrant (v1.8.4+)

    IMPORTANT: this will NOT work with any version of Vagrant lower than the version mentioned above due to incompatible changes in Ubuntu Xenial

  • Install tools to manage SSH (Windows only)

Configuration

Provision

  • Run vagrant up to provision your machine (be patient as the composer install takes some time, especially when sample data is included) then follow the instructions in your terminal for updating your host file once complete

What does this do?

  • Installs and configures the above server environment and tools
  • Downloads the latest version of Magento 2 via composer and installs via CLI based on config
  • Server and Magento install configuration can be tailored using the config.yaml file
    • This allows for control over the following and more:
      • VM settings
      • Magento install settings (e.g. base url, locale, admin user etc.)
      • Sample data install
      • Run mode (e.g. developer/production)
  • Cron setup as per http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html
  • Postfix setup for email support
  • Also adds 'pretty' bash terminal prompt with support for current git branch and handy shortcuts

TODO / Wishlist

  • Add detailed install instructions
  • Add support for more providers (Parallels, VMWare etc.)
  • Redis and Varnish configuration
  • Add SSL support
  • Better documentation
  • Better validation for yaml config settings
  • Tidy up / improve yaml config (maybe split some out into separate files)
  • Add support for other technologies and make configurable (e.g. Centos, PHP version, HHVM, Apache, Memcahced, standard MySQL)
  • Install further useful development tools
  • Magento EE version (plus services e.g. RabbitMQ / Solr / Elastic Search)
  • Docker version?

Mentions

Thanks to the following for inspiration:

About

Magento 2 Vagrant Environment

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages