Merge pull request #2435 from alchemy-fr/fix-provisionning-master

PHRAS-1794 PHRAS-1800 and PHRAS-1804 : fix pecl-packages and node version
This commit is contained in:
Nicolas Maillat
2018-01-12 16:16:15 +01:00
committed by GitHub
5 changed files with 82 additions and 19 deletions

View File

@@ -4,16 +4,17 @@
vars_files: vars_files:
- vars/all.yml - vars/all.yml
roles: roles:
- server # - server
- repositories # - repositories
- vagrant_local # - vagrant_local
- nginx # - nginx
- mariadb # - mariadb
- elasticsearch # - elasticsearch
- rabbitmq # - rabbitmq
- php # - php
- xdebug # - xdebug
- composer # - composer
- mailcatcher # - mailcatcher
- node # - node
- app # - app
- ffmpeg

View File

@@ -0,0 +1,57 @@
---
# This playbook will compile and install FFmpeg and dependencies for Phraseanet
- name: Install dependencies for ffmpeg compilation
apt: pkg={{ item }} state=latest
with_items:
- yasm
- libvorbis-dev
- texi2html
- nasm
- zlib1g-dev
- libx264-dev
- libfdk-aac-dev
- libopus-dev
- libvpx-dev
- libmp3lame-dev
- libogg-dev
- libfaac-dev
- libopencore-amrnb-dev
- libopencore-amrwb-dev
- libdc1394-22-dev
- libx11-dev
- libswscale-dev
- libpostproc-dev
- libxvidcore-dev
- libtheora-dev
- libgsm1-dev
- libfreetype6-dev
# Download FFMPEG
- name: ffmpeg | Download
get_url: url=http://ffmpeg.org/releases/ffmpeg-{{ ffmpeg.version }}.tar.gz dest=/tmp/ffmpeg-{{ ffmpeg.version }}.tar.gz
- name: ffmpeg | Untar
shell: tar xzvf ffmpeg-{{ ffmpeg.version }}.tar.gz
args:
chdir: "/tmp"
creates: "/tmp/ffmpeg-{{ ffmpeg.version }}"
- name: Compile | ffmpeg
shell: "export PATH=/usr/local/bin/:$PATH && {{ item }}"
args:
chdir: "/tmp/ffmpeg-{{ ffmpeg.version }}"
with_items:
- ./configure --enable-gpl --enable-nonfree --enable-libfaac --enable-libfdk_aac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libopus --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-libdc1394 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb
- make
- make install
- make distclean
- name: delete ffmpeg sources files
file:
path: "{{ item }}"
state: absent
with_items:
- "/tmp/ffmpeg-{{ ffmpeg.version }}"
- "/tmp/ffmpeg-{{ ffmpeg.version }}.tar.gz"

View File

@@ -7,4 +7,4 @@
- name: Install specific nodejs version - name: Install specific nodejs version
become: yes become: yes
become_user: vagrant become_user: vagrant
shell: export NVM_DIR="$HOME/.nvm" &&. ~/.nvm/nvm.sh && nvm install 0.12.16 && nvm alias default 0.12.16 shell: export NVM_DIR="$HOME/.nvm" &&. ~/.nvm/nvm.sh && nvm install {{ node.version }} && nvm alias default {{ node.version }}

View File

@@ -15,4 +15,4 @@
when: php.packages is defined when: php.packages is defined
- include: configure.yml - include: configure.yml
- include: pecl.yml # - include: pecl.yml

View File

@@ -80,10 +80,12 @@ php:
- 'php5.6-sqlite3' - 'php5.6-sqlite3'
- 'php5.6-bcmath' - 'php5.6-bcmath'
- 'php-pear' - 'php-pear'
pecl_packages: - 'php5.6-dev'
- {name: zmq, package: php-zmq} - 'php-zmq'
- {name: amqp, package: amqp-1.9.3} - 'php-amqp'
node:
install: '1'
version: '9.4.0'
xdebug: xdebug:
install: '1' install: '1'
idekey: 'PHPSTORM' idekey: 'PHPSTORM'
@@ -95,3 +97,6 @@ composer:
mailcatcher: mailcatcher:
install: '1' install: '1'
ffmpeg:
install: '1'
version: '3.1.10'