Skip to content

Commit e9eacfa

Browse files
committed
Added support for the mailparse php pecl extension
1 parent a2c7b46 commit e9eacfa

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ services:
106106
- INSTALL_MYSQL_CLIENT=${WORKSPACE_INSTALL_MYSQL_CLIENT}
107107
- INSTALL_PING=${WORKSPACE_INSTALL_PING}
108108
- INSTALL_SSHPASS=${WORKSPACE_INSTALL_SSHPASS}
109+
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
109110
- PUID=${WORKSPACE_PUID}
110111
- PGID=${WORKSPACE_PGID}
111112
- CHROME_DRIVER_VERSION=${WORKSPACE_CHROME_DRIVER_VERSION}
@@ -183,6 +184,7 @@ services:
183184
- INSTALL_MYSQL_CLIENT=${PHP_FPM_INSTALL_MYSQL_CLIENT}
184185
- INSTALL_PING=${PHP_FPM_INSTALL_PING}
185186
- INSTALL_SSHPASS=${PHP_FPM_INSTALL_SSHPASS}
187+
- INSTALL_MAILPARSE=${PHP_FPM_INSTALL_MAILPARSE}
186188
- ADDITIONAL_LOCALES=${PHP_FPM_ADDITIONAL_LOCALES}
187189
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
188190
- http_proxy

env-example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ WORKSPACE_INSTALL_PING=false
137137
WORKSPACE_INSTALL_SSHPASS=false
138138
WORKSPACE_INSTALL_INOTIFY=false
139139
WORKSPACE_INSTALL_FSWATCH=false
140+
WORKSPACE_INSTALL_MAILPARSE=true
140141
WORKSPACE_PUID=1000
141142
WORKSPACE_PGID=1000
142143
WORKSPACE_CHROME_DRIVER_VERSION=2.42
@@ -188,6 +189,7 @@ PHP_FPM_INSTALL_ADDITIONAL_LOCALES=false
188189
PHP_FPM_INSTALL_MYSQL_CLIENT=false
189190
PHP_FPM_INSTALL_PING=false
190191
PHP_FPM_INSTALL_SSHPASS=false
192+
PHP_FPM_INSTALL_MAILPARSE=true
191193
PHP_FPM_FFMPEG=false
192194
PHP_FPM_ADDITIONAL_LOCALES="es_ES.UTF-8 fr_FR.UTF-8"
193195

php-fpm/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,19 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
725725
apt-get -y install ffmpeg \
726726
;fi
727727

728+
###########################################################################
729+
# Mailparse extension:
730+
###########################################################################
731+
732+
ARG INSTALL_MAILPARSE=false
733+
734+
RUN if [ ${INSTALL_MAILPARSE} = true ]; then \
735+
# Install mailparse extension
736+
printf "\n" | pecl install -o -f mailparse \
737+
&& rm -rf /tmp/pear \
738+
&& docker-php-ext-enable mailparse \
739+
;fi
740+
728741
###########################################################################
729742
# Check PHP version:
730743
###########################################################################

workspace/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,16 @@ RUN if [ ${INSTALL_FFMPEG} = true ]; then \
10571057
apt-get -y install ffmpeg \
10581058
;fi
10591059

1060+
###########################################################################
1061+
# Mailparse extension:
1062+
###########################################################################
1063+
1064+
ARG INSTALL_MAILPARSE=false
1065+
1066+
RUN if [ ${INSTALL_MAILPARSE} = true ]; then \
1067+
apt-get install -yqq php-mailparse \
1068+
;fi
1069+
10601070
###########################################################################
10611071
# GNU Parallel:
10621072
###########################################################################

0 commit comments

Comments
 (0)