Skip to content

Commit 4ce25e9

Browse files
4c0nbestlong
authored andcommitted
Added option to install the php calendar extension in php-fpm (laradock#1672)
* Added option to install the php calendar extension in php-fpm * Added section about installing php calendar extension in php-fpm
1 parent 20b0181 commit 4ce25e9

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,19 @@ e) set it to `true`
14561456

14571457

14581458

1459+
<a name="Install php calendar extension"></a>
1460+
## Install php calendar extension
1461+
1462+
1 - Open the `.env` file
1463+
<br>
1464+
2 - Search for the `PHP_FPM_INSTALL_CALENDAR` argument under the PHP-FPM container
1465+
<br>
1466+
3 - Set it to `true`
1467+
<br>
1468+
4 - Re-build the containers `docker-compose build php-fpm`
1469+
1470+
1471+
14591472

14601473

14611474
<br>

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ services:
143143
- INSTALL_SWOOLE=${PHP_FPM_INSTALL_SWOOLE}
144144
- INSTALL_IMAGE_OPTIMIZERS=${PHP_FPM_INSTALL_IMAGE_OPTIMIZERS}
145145
- INSTALL_IMAGEMAGICK=${PHP_FPM_INSTALL_IMAGEMAGICK}
146+
- INSTALL_CALENDAR=${PHP_FPM_INSTALL_CALENDAR}
146147
volumes:
147148
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
148149
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ PHP_FPM_INSTALL_LDAP=false
148148
PHP_FPM_INSTALL_SWOOLE=false
149149
PHP_FPM_INSTALL_PG_CLIENT=false
150150
PHP_FPM_INSTALL_PCNTL=false
151+
PHP_FPM_INSTALL_CALENDAR=false
151152

152153
### PHP_WORKER ############################################
153154

php-fpm/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,19 @@ RUN if [ ${INSTALL_IMAP} = true ]; then \
469469
docker-php-ext-install imap \
470470
;fi
471471

472+
###########################################################################
473+
# Calendar:
474+
###########################################################################
475+
476+
USER root
477+
478+
ARG INSTALL_CALENDAR=false
479+
480+
RUN if [ ${INSTALL_CALENDAR} = true ]; then \
481+
docker-php-ext-configure calendar && \
482+
docker-php-ext-install calendar \
483+
;fi
484+
472485
###########################################################################
473486
# Check PHP version:
474487
###########################################################################

0 commit comments

Comments
 (0)