Merge pull request #1134 from nlegoff/up-vm

[READY][3.8.6] Update VM
This commit is contained in:
Nicolas Le Goff
2014-08-19 15:09:46 +02:00
4 changed files with 26 additions and 9 deletions

5
Vagrantfile vendored
View File

@@ -79,7 +79,7 @@ Vagrant.configure("2") do |config|
end
if folder['source'] != '' && folder['target'] != ''
if folder['sync_type'] == 'nfs'
node.vm.synced_folder "#{folder['source']}", "#{folder['target']}", id: "#{i}", type: "nfs"
node.vm.synced_folder "#{folder['source']}", "#{folder['target']}", id: "#{i}", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp', 'fsc']
elsif folder['sync_type'] == 'smb'
node.vm.synced_folder "#{folder['source']}", "#{folder['target']}", id: "#{i}", type: "smb"
elsif folder['sync_type'] == 'rsync'
@@ -155,7 +155,8 @@ Vagrant.configure("2") do |config|
end
v.memory = "#{data['vm']['memory']}"
v.cpus = "#{data['vm']['cpus']}"
if data['vm']['hostname'].to_s.strip.length != 0
v.name = node.vm.hostname
end

View File

@@ -6,6 +6,7 @@ vagrantfile-local:
box_url: puphpet/debian75-x64
hostname: phraseanet-php54-nginx
memory: '2048'
cpus: '2'
chosen_provider: virtualbox
network:
private_network: 192.168.56.101
@@ -84,6 +85,7 @@ server:
- libfreetype6-dev
- libgif-dev
- libjpeg62-dev
- cachefilesd
dot_files:
-
bash_aliases: null
@@ -183,6 +185,7 @@ php:
- mysql
- mbstring
- sqlite
- redis
pear: { }
pecl:
- zip

View File

@@ -7,4 +7,20 @@ sudo iptables -I INPUT -p tcp --dport 15672 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 9200 -j ACCEPT
# open mysql ports
sudo iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
sudo iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
#closure
echo 'export JS_COMPILER=$HOME/closure/compiler.jar' >> ~/.bashrc
source ~/.bashrc
# java
echo 'export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/' >> ~/.bashrc
source ~/.bashrc
# locales
export LANGUAGE=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_ALL=fr_FR.UTF-8
source ~/.bashrc

View File

@@ -39,12 +39,6 @@ cd /tmp
wget quiet http://dl.google.com/closure-compiler/compiler-latest.zip
unzip compiler-latest.zip -d closure
mv closure $HOME
echo 'export JS_COMPILER=$HOME/closure/compiler.jar' >> ~/.bashrc
source ~/.bashrc
# java
echo 'export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/' >> ~/.bashrc
source ~/.bashrc
#twig
cd /tmp
@@ -104,6 +98,9 @@ if [ $? -eq 0 ]; then
sudo sh -c 'echo ";extension=libevent.so" > /etc/php5/fpm/conf.d/libevent.ini'
fi
# cache file sd
sudo sh -c 'echo "RUN=yes" > /etc/default/cachefilesd'
# copy www.conf
sudo sh -c "cat /vagrant/vagrant/config/nginx/php5-fpm-www.conf > /etc/php5/fpm/pool.d/www.conf"