forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe79729
commit 7b9d959
Showing
19 changed files
with
280 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[submodule "vagrant/modules/stdlib"] | ||
path = vagrant/modules/stdlib | ||
url = [email protected]:puppetlabs/puppetlabs-stdlib.git | ||
[submodule "vagrant/modules/puppi"] | ||
path = vagrant/modules/puppi | ||
url = [email protected]:example42/puppi.git | ||
[submodule "vagrant/modules/apache"] | ||
path = vagrant/modules/apache | ||
url = [email protected]:example42/puppet-apache.git | ||
[submodule "vagrant/modules/apt"] | ||
path = vagrant/modules/apt | ||
url = [email protected]:puppetlabs/puppetlabs-apt.git | ||
[submodule "vagrant/modules/composer"] | ||
path = vagrant/modules/composer | ||
url = [email protected]:vagrantee/puppet-composer.git | ||
[submodule "vagrant/modules/mysql"] | ||
path = vagrant/modules/mysql | ||
url = [email protected]:puppetlabs/puppetlabs-mysql.git | ||
[submodule "vagrant/modules/php"] | ||
path = vagrant/modules/php | ||
url = [email protected]:example42/puppet-php.git | ||
[submodule "vagrant/modules/puphpet"] | ||
path = vagrant/modules/puphpet | ||
url = [email protected]:puphpet/puppet-puphpet.git | ||
[submodule "vagrant/modules/xdebug"] | ||
path = vagrant/modules/xdebug | ||
url = [email protected]:puphpet/puphpet-xdebug.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
# Getting started using Vagrant | ||
# Description | ||
This configuration includes following software: | ||
|
||
## You will need: | ||
* PHP 5.4.19 | ||
* MySQL 5.5.32 | ||
* GIT 1.7.9.5 | ||
* Apache 2.2.22 | ||
* Vim | ||
* MC (Midnight commander) | ||
* Curl | ||
* Xdebug | ||
* Composer | ||
|
||
* Git 1.6+ | ||
* NFS (MacOS works OOB, on Debian based linux distributions install **nfs-kernel-server** package) | ||
* [Vagrant](http://vagrantup.com) | ||
# Usage | ||
|
||
## Get the code | ||
First you need to install git submodules. Go to your project root folder and execute following commands: | ||
``` | ||
$ git submodule init | ||
$ git submodule update | ||
``` | ||
|
||
git clone git://github.com/Sylius/Sylius.git | ||
cd Sylius/vagrant | ||
vagrant up | ||
Now you are ready to run | ||
|
||
Now everything is getting prepared. | ||
In the meantime you can optionally add an entry to your `/etc/hosts` file like so: | ||
``` | ||
$ cd vagrant | ||
$ vagrant up | ||
``` | ||
|
||
172.33.33.33 sylius.local | ||
While waiting for the vagrant to stand up you should add an entry into /etc/hosts file at host machine. | ||
|
||
## Access by web browser | ||
``` | ||
10.0.0.200 sylius.dev | ||
``` | ||
|
||
If you have added the entry to `/etc/hosts` you should be able to access the Sylius like this: | ||
|
||
<http://sylius.local/dev.php> | ||
|
||
Otherwise you can also use the IP address: | ||
|
||
<http://172.33.33.33/dev.php> | ||
From now you should be able to access your sylius project at host machine under http://sylius.dev/ address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,23 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "precise64" | ||
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | ||
|
||
Vagrant::Config.run do |config| | ||
# All Vagrant configuration is done here. The most common configuration | ||
# options are documented and commented below. For a complete reference, | ||
# please see the online documentation at vagrantup.com. | ||
config.vm.network :private_network, ip: "10.0.0.200" | ||
config.ssh.forward_agent = true | ||
|
||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "precise32" | ||
config.vm.host_name = "sylius" | ||
|
||
# The url from where the 'config.vm.box' box will be fetched if it | ||
# doesn't already exist on the user's system. | ||
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | ||
|
||
config.vm.network :hostonly, "172.33.33.33" | ||
config.vm.share_folder "v-root", "/mnt/sylius", ".." , :nfs => true | ||
|
||
# Whithout this symlinks can't be created on the shared folder. | ||
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] | ||
config.vm.provider :virtualbox do |v| | ||
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | ||
v.customize ["modifyvm", :id, "--memory", 1024] | ||
v.customize ["modifyvm", :id, "--name", "sylius"] | ||
end | ||
|
||
# Chef solo configuration. | ||
config.vm.provision :chef_solo do |chef| | ||
chef.cookbooks_path = "./" | ||
# Chef debug level, start vagrant like this to debug: | ||
# $ CHEF_LOG_LEVEL=debug vagrant <provision or up> | ||
chef.log_level = ENV['CHEF_LOG'] || "info" | ||
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ | ||
config.vm.synced_folder "./../", "/var/www/sylius", id: "vagrant-root" , :nfs => nfs_setting | ||
config.vm.provision :shell, :inline => "sudo apt-get update" | ||
|
||
# Chef recipes. | ||
chef.add_recipe("cookbook") | ||
config.vm.provision :puppet do |puppet| | ||
puppet.manifests_path = "manifests" | ||
puppet.module_path = "modules" | ||
puppet.options = ['--verbose'] | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.