Installation of ffmpeg (#2118)
* Install ffmpeg in workspace and php-worker.
This commit is contained in:
parent
0980523049
commit
4417083a80
@ -1728,6 +1728,10 @@ To install FFMPEG in the Workspace container
|
|||||||
|
|
||||||
3 - Re-build the container `docker-compose build workspace`
|
3 - Re-build the container `docker-compose build workspace`
|
||||||
|
|
||||||
|
4 - If you use the `php-worker` container too, please follow the same steps above especially if you have conversions that have been queued.
|
||||||
|
|
||||||
|
**PS** Don't forget to install the binary in the `php-fpm` container too by applying the same steps above to its container, otherwise the you'll get an error when running the `php-ffmpeg` binary.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -172,6 +172,7 @@ services:
|
|||||||
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
- INSTALL_ADDITIONAL_LOCALES=${PHP_FPM_INSTALL_ADDITIONAL_LOCALES}
|
||||||
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
|
||||||
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
|
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
|
||||||
|
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
|
||||||
volumes:
|
volumes:
|
||||||
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
|
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
@ -206,6 +207,7 @@ services:
|
|||||||
- INSTALL_AMQP=${PHP_WORKER_INSTALL_AMQP}
|
- INSTALL_AMQP=${PHP_WORKER_INSTALL_AMQP}
|
||||||
- INSTALL_GHOSTSCRIPT=${PHP_WORKER_INSTALL_GHOSTSCRIPT}
|
- INSTALL_GHOSTSCRIPT=${PHP_WORKER_INSTALL_GHOSTSCRIPT}
|
||||||
- INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
|
- INSTALL_SWOOLE=${PHP_WORKER_INSTALL_SWOOLE}
|
||||||
|
- INSTALL_FFMPEG=${PHP_WORKER_INSTALL_FFMPEG}
|
||||||
- PUID=${PHP_WORKER_PUID}
|
- PUID=${PHP_WORKER_PUID}
|
||||||
- PGID=${PHP_WORKER_PGID}
|
- PGID=${PHP_WORKER_PGID}
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -180,6 +180,7 @@ PHP_FPM_INSTALL_APCU=false
|
|||||||
PHP_FPM_INSTALL_YAML=false
|
PHP_FPM_INSTALL_YAML=false
|
||||||
PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
|
PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
|
||||||
PHP_FPM_INSTALL_MYSQL_CLIENT=false
|
PHP_FPM_INSTALL_MYSQL_CLIENT=false
|
||||||
|
PHP_FPM_FFMPEG=false
|
||||||
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
|
||||||
|
|
||||||
### PHP_WORKER ############################################
|
### PHP_WORKER ############################################
|
||||||
@ -193,6 +194,7 @@ PHP_WORKER_INSTALL_MYSQL_CLIENT=false
|
|||||||
PHP_WORKER_INSTALL_AMQP=false
|
PHP_WORKER_INSTALL_AMQP=false
|
||||||
PHP_WORKER_INSTALL_GHOSTSCRIPT=false
|
PHP_WORKER_INSTALL_GHOSTSCRIPT=false
|
||||||
PHP_WORKER_INSTALL_SWOOLE=false
|
PHP_WORKER_INSTALL_SWOOLE=false
|
||||||
|
PHP_WORKER_INSTALL_FFMPEG=false
|
||||||
PHP_WORKER_PUID=1000
|
PHP_WORKER_PUID=1000
|
||||||
PHP_WORKER_PGID=1000
|
PHP_WORKER_PGID=1000
|
||||||
|
|
||||||
|
@ -643,6 +643,19 @@ RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
|
|||||||
apt-get -y install mysql-client \
|
apt-get -y install mysql-client \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# FFMPEG:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
ARG INSTALL_FFMPEG=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_FFMPEG} = true ]; then \
|
||||||
|
apt-get update -yqq && \
|
||||||
|
apt-get -y install ffmpeg \
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Check PHP version:
|
# Check PHP version:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
@ -69,6 +69,12 @@ RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
|
|||||||
apk --update add mysql-client \
|
apk --update add mysql-client \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
# Install FFMPEG:
|
||||||
|
ARG INSTALL_FFMPEG=false
|
||||||
|
RUN if [ ${INSTALL_FFMPEG} = true ]; then \
|
||||||
|
apk --update add ffmpeg \
|
||||||
|
;fi
|
||||||
|
|
||||||
# Install AMQP:
|
# Install AMQP:
|
||||||
ARG INSTALL_AMQP=false
|
ARG INSTALL_AMQP=false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user