Add code to install YAML extension
This commit is contained in:
parent
c9e71c695e
commit
82a4b1db60
@ -105,6 +105,23 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
|
|||||||
&& docker-php-ext-enable mongodb \
|
&& docker-php-ext-enable mongodb \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# YAML: extension
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG INSTALL_YAML=false
|
||||||
|
|
||||||
|
RUN if [ ${INSTALL_YAML} = true ]; then \
|
||||||
|
apt-get install libyaml-dev -y ; \
|
||||||
|
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||||
|
pecl install -a yaml-1.3.2; \
|
||||||
|
else \
|
||||||
|
pecl install yaml; \
|
||||||
|
fi && \
|
||||||
|
echo "extension=yaml.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/yaml.ini && \
|
||||||
|
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/yaml.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/35-yaml.ini \
|
||||||
|
;fi
|
||||||
|
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# PHP Memcached:
|
# PHP Memcached:
|
||||||
|
Loading…
Reference in New Issue
Block a user