Giter Site home page Giter Site logo

vagrant-devops-env's Introduction

Vagrant Devops PHP Environment

Devops environment with Vagrant & Puppet for PHP Projects (Symfony2, Magento, Drupal, Wordpress, ...)

Requirements

  • Vagrant
  • VirtualBox

How to use it

Step 1: init environment

cd /path/to/myproject 
git init
git submodule add https://github.com/John-iw2/vagrant-devops-env.git vagrant
git submodule update --init --recursive

Step 2: configure env for your project

cp vagrant/vagrantconfig.yaml ./

You can customise the file vagrantconfig.yaml and add this file in your git for your team.

box: 'Debian_7.3_32'
box_memory: 1024
box_cores: 2
box_sync: nfs  #nfs|smb
project_name: 'projectname'
project_path: '/var/www/projectname'
project_webroot: '/var/www/projectname/web'
project_url: 'www.projectname.local'
project_template: 'symfony' #symfony|wordpress|drupal|prestashop|magento

If you need specific config that you don't want under git you can add a file named 'vagrantconfig_local.yaml' and add it on your .gitignore.

Step 3: start you env

cd vagrant
vagrant up
vagrant provision
vagrant ssh

known issues

Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly.

Solution:

vagrant ssh
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/ /usr/lib/VBoxGuestAdditions
sudo /etc/init.d/vboxadd setup
exit
vagrant reload
vagrant provision

===

Using Symfony2 inside a Vagrant box is considered to be very slow, even when using NFS

Solution: Speedup symfony2 on vagrant boxes

Installed components

  • nginx
  • mysql
  • phpmyadmin
  • php5
  • composer
  • nodejs & npm
  • grunt
  • bower

Work in progress

  • elastic search
  • rabbitMQ
  • mongo
  • redis
  • capifony
  • nodejs

vagrant-devops-env's People

Contributors

bettercalljohn avatar

Watchers

 avatar James Cloos avatar Nicolas Potier 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.