mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +01:00
T16: Added ffmpeg compilation to the Vagrant provisioning script, and upped the number of cores to speed it up.
This commit is contained in:
parent
a61d13a8ed
commit
76fe042652
2 changed files with 24 additions and 5 deletions
5
Vagrantfile
vendored
5
Vagrantfile
vendored
|
@ -1,6 +1,9 @@
|
|||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = 'laravel/homestead'
|
||||
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
v.cpus = 4
|
||||
end
|
||||
|
||||
config.vm.network :private_network, ip: "192.168.33.11"
|
||||
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
||||
|
||||
|
|
|
@ -1,8 +1,24 @@
|
|||
sudo add-apt-repository -y ppa:kirillshkrogalev/ffmpeg-next
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ffmpeg
|
||||
|
||||
echo "Installing tagging tools"
|
||||
sudo apt-get install -y AtomicParsley flac vorbis-tools
|
||||
sudo add-apt-repository -y --remove ppa:kirillshkrogalev/ffmpeg-next
|
||||
|
||||
echo "Installing ffmpeg dependencies"
|
||||
sudo apt-get install -y pkg-config yasm libfaac-dev libmp3lame-dev libvorbis-dev
|
||||
|
||||
|
||||
if type ffmpeg &>/dev/null; then
|
||||
echo "ffmpeg is installed!"
|
||||
else
|
||||
echo "ffmpeg is not installed; compiling..."
|
||||
cd /tmp
|
||||
wget "https://ffmpeg.org/releases/ffmpeg-2.6.3.tar.bz2"
|
||||
tar -xjf "ffmpeg-2.6.3.tar.bz2"
|
||||
cd "ffmpeg-2.6.3"
|
||||
./configure --enable-gpl --enable-encoder=flac --enable-encoder=alac --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-nonfree
|
||||
make -j4
|
||||
sudo make install
|
||||
fi
|
||||
|
||||
mkdir /vagrant/logs
|
||||
/vagrant/vagrant/copy-and-restart-configs.sh
|
||||
|
@ -15,4 +31,4 @@ composer install
|
|||
cp -r /vagrant/vagrant/config/* "/vagrant/app/config/local"
|
||||
|
||||
php artisan migrate
|
||||
php artisan db:seed
|
||||
php artisan db:seed
|
||||
|
|
Loading…
Reference in a new issue