Installation of ffmpeg (#2078)

* Install ffmpeg in workspace.
* Documented the process for install ffmpeg.
This commit is contained in:
Tunde Aromire 2019-04-09 07:32:40 +01:00 committed by Shao Yu-Lung (Allen)
parent 95965b12e7
commit a03c225e27
4 changed files with 30 additions and 0 deletions

View File

@ -1716,6 +1716,22 @@ Linuxbrew is a package manager for Linux. It is the Linux version of MacOS Homeb
<br>
<a name="Install-FFMPEG"></a>
## Install FFMPEG
To install FFMPEG in the Workspace container
1 - Open the `.env` file
2 - Search for the `WORKSPACE_INSTALL_FFMPEG` argument under the Workspace Container and set it to `true`
3 - Re-build the container `docker-compose build workspace`
<br>
<a name="Common-Aliases"></a>

View File

@ -109,6 +109,7 @@ services:
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
extra_hosts:

View File

@ -139,6 +139,7 @@ WORKSPACE_PGID=1000
WORKSPACE_CHROME_DRIVER_VERSION=2.42
WORKSPACE_TIMEZONE=UTC
WORKSPACE_SSH_PORT=2222
WORKSPACE_INSTALL_FFMPEG=false
### PHP_FPM ###############################################

View File

@ -990,6 +990,18 @@ RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
apt-get -y install mysql-client \
;fi
###########################################################################
# FFMpeg:
###########################################################################
USER root
ARG INSTALL_FFMPEG=false
RUN if [ ${INSTALL_FFMPEG} = true ]; then \
apt-get -y install ffmpeg \
;fi
###########################################################################
# Check PHP version:
###########################################################################