added ssh2 to workspace and php-fpm (#1756)

This commit is contained in:
vladyslavstartsev
2018-08-28 09:16:25 +03:00
committed by Shao Yu-Lung (Allen)
parent 947a791ad2
commit 39469e1404
4 changed files with 34 additions and 0 deletions

View File

@ -50,6 +50,23 @@ RUN apt-get update -yqq && \
# - INSTALL_ZIP_ARCHIVE=true
#
###########################################################################
# SSH2:
###########################################################################
ARG INSTALL_SSH2=false
RUN if [ ${INSTALL_SSH2} = true ]; then \
# Install the ssh2 extension
apt-get -y install libssh2-1-dev && \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install -a ssh2-0.13; \
else \
pecl install -a ssh2-1.1.2; \
fi && \
docker-php-ext-enable ssh2 \
;fi
###########################################################################
# SOAP:
###########################################################################