mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Improve vagrant box generation
This commit is contained in:
@@ -90,7 +90,6 @@ server:
|
|||||||
- libva-dev
|
- libva-dev
|
||||||
- libvdpau-dev
|
- libvdpau-dev
|
||||||
- libvorbis-dev
|
- libvorbis-dev
|
||||||
- libvorbis-dev
|
|
||||||
- libvpx-dev
|
- libvpx-dev
|
||||||
- libx11-dev
|
- libx11-dev
|
||||||
- libx264-dev
|
- libx264-dev
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# stoping iptable
|
# stoping iptable
|
||||||
sudo service iptables-persistent stop
|
sudo service iptables-persistent stop
|
||||||
|
@@ -26,11 +26,11 @@ sudo apt-get update
|
|||||||
sudo apt-get install --force-yes -y libfaac-dev
|
sudo apt-get install --force-yes -y libfaac-dev
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget –quiet https://www.ffmpeg.org/releases/ffmpeg-1.2.8.tar.gz
|
wget –-quiet https://www.ffmpeg.org/releases/ffmpeg-1.2.8.tar.gz
|
||||||
tar -zxvf ffmpeg-1.2.8.tar.gz
|
tar -zxvf ffmpeg-1.2.8.tar.gz
|
||||||
cd ffmpeg-1.2.8
|
cd ffmpeg-1.2.8
|
||||||
|
|
||||||
wget –quiet -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master
|
wget –-quiet -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master
|
||||||
sudo -u vagrant unzip fdk-aac.zip
|
sudo -u vagrant unzip fdk-aac.zip
|
||||||
cd mstorsjo-fdk-aac*
|
cd mstorsjo-fdk-aac*
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
@@ -63,7 +63,7 @@ sudo make install
|
|||||||
|
|
||||||
# node + npm
|
# node + npm
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget –quiet "http://nodejs.org/dist/v0.10.29/node-v0.10.29-linux-x64.tar.gz"
|
wget –-quiet "http://nodejs.org/dist/v0.10.29/node-v0.10.29-linux-x64.tar.gz"
|
||||||
tar -zxvf node-v0.10.29-linux-x64.tar.gz
|
tar -zxvf node-v0.10.29-linux-x64.tar.gz
|
||||||
cd node-v0.10.29-linux-x64
|
cd node-v0.10.29-linux-x64
|
||||||
find . -maxdepth 1 -type f -exec rm {} \;
|
find . -maxdepth 1 -type f -exec rm {} \;
|
||||||
@@ -95,7 +95,7 @@ sudo sh -c 'ln -s ../../mods-available/zmq.ini /etc/php5/fpm/conf.d/20-zmq.ini'
|
|||||||
|
|
||||||
# swftools
|
# swftools
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget –quiet http://www.swftools.org/swftools-0.9.2.tar.gz
|
wget –-quiet http://www.swftools.org/swftools-0.9.2.tar.gz
|
||||||
tar -xzvf swftools-0.9.2.tar.gz
|
tar -xzvf swftools-0.9.2.tar.gz
|
||||||
cd swftools-0.9.2
|
cd swftools-0.9.2
|
||||||
./configure
|
./configure
|
||||||
@@ -113,7 +113,6 @@ if [ ! -f /var/www/phraseanet/config/configuration.yml ]
|
|||||||
then
|
then
|
||||||
#copy configuration template
|
#copy configuration template
|
||||||
mv /var/www/phraseanet/lib/conf.d/configuration.yml /var/www/phraseanet/lib/conf.d/configuration.yml.bkp
|
mv /var/www/phraseanet/lib/conf.d/configuration.yml /var/www/phraseanet/lib/conf.d/configuration.yml.bkp
|
||||||
cp /vagrant/resources/vagrant/config/phraseanet/configuration.yml /var/www/phraseanet/lib/conf.d/configuration.yml
|
|
||||||
cd /var/www/phraseanet
|
cd /var/www/phraseanet
|
||||||
sudo -u vagrant composer install -n --prefer-source --dev
|
sudo -u vagrant composer install -n --prefer-source --dev
|
||||||
sudo -u vagrant npm install
|
sudo -u vagrant npm install
|
||||||
@@ -133,3 +132,5 @@ sudo service iptables-persistent stop
|
|||||||
|
|
||||||
# reload bash
|
# reload bash
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
Reference in New Issue
Block a user