Skip to content

Commit a03c225

Browse files
toondaeybestlong
authored andcommitted
Installation of ffmpeg (laradock#2078)
* Install ffmpeg in workspace. * Documented the process for install ffmpeg.
1 parent 95965b1 commit a03c225

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,22 @@ Linuxbrew is a package manager for Linux. It is the Linux version of MacOS Homeb
17161716

17171717

17181718

1719+
<br>
1720+
<a name="Install-FFMPEG"></a>
1721+
## Install FFMPEG
1722+
1723+
To install FFMPEG in the Workspace container
1724+
1725+
1 - Open the `.env` file
1726+
1727+
2 - Search for the `WORKSPACE_INSTALL_FFMPEG` argument under the Workspace Container and set it to `true`
1728+
1729+
3 - Re-build the container `docker-compose build workspace`
1730+
1731+
1732+
1733+
1734+
17191735

17201736
<br>
17211737
<a name="Common-Aliases"></a>

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ services:
109109
- BLACKFIRE_CLIENT_ID=${BLACKFIRE_CLIENT_ID}
110110
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
111111
- INSTALL_POWERLINE=${WORKSPACE_INSTALL_POWERLINE}
112+
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
112113
volumes:
113114
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
114115
extra_hosts:

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ WORKSPACE_PGID=1000
139139
WORKSPACE_CHROME_DRIVER_VERSION=2.42
140140
WORKSPACE_TIMEZONE=UTC
141141
WORKSPACE_SSH_PORT=2222
142+
WORKSPACE_INSTALL_FFMPEG=false
142143

143144
### PHP_FPM ###############################################
144145

workspace/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,18 @@ RUN if [ ${INSTALL_MYSQL_CLIENT} = true ]; then \
990990
apt-get -y install mysql-client \
991991
;fi
992992

993+
###########################################################################
994+
# FFMpeg:
995+
###########################################################################
996+
997+
USER root
998+
999+
ARG INSTALL_FFMPEG=false
1000+
1001+
RUN if [ ${INSTALL_FFMPEG} = true ]; then \
1002+
apt-get -y install ffmpeg \
1003+
;fi
1004+
9931005
###########################################################################
9941006
# Check PHP version:
9951007
###########################################################################

0 commit comments

Comments
 (0)