Skip to content

Commit

Permalink
Install ssh2 ext from source for PHP 7.x
Browse files Browse the repository at this point in the history
pecl releases are old and won't work for PHP 7.3, so installing from source for all PHP 7 versions
  • Loading branch information
lmakarov committed Jan 16, 2019
1 parent 4ec6f72 commit d1fe14c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions 7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ RUN set -xe; \
libzip4 \
msodbcsql17 \
;\
# SSH2 must be installed from source for PHP 7.x
git clone https://github.com/php/pecl-networking-ssh2.git /usr/src/php/ext/ssh2 && rm -rf /usr/src/php/ext/ssh2/.git; \
\
docker-php-ext-configure >/dev/null gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
Expand Down Expand Up @@ -193,6 +196,7 @@ RUN set -xe; \
pgsql \
soap \
sockets \
ssh2 \
xsl \
zip \
;\
Expand All @@ -206,7 +210,6 @@ RUN set -xe; \
pdo_sqlsrv \
redis \
sqlsrv \
ssh2-1.1.2 \
xdebug \
;\
docker-php-ext-enable \
Expand All @@ -217,7 +220,6 @@ RUN set -xe; \
pdo_sqlsrv \
redis \
sqlsrv \
ssh2 \
;\
# Cleanup
docker-php-source delete; \
Expand Down
6 changes: 4 additions & 2 deletions 7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ RUN set -xe; \
libzip4 \
msodbcsql17 \
;\
# SSH2 must be installed from source for PHP 7.x
git clone https://github.com/php/pecl-networking-ssh2.git /usr/src/php/ext/ssh2 && rm -rf /usr/src/php/ext/ssh2/.git; \
\
docker-php-ext-configure >/dev/null gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
Expand Down Expand Up @@ -194,6 +197,7 @@ RUN set -xe; \
pgsql \
soap \
sockets \
ssh2 \
xsl \
zip \
;\
Expand All @@ -207,7 +211,6 @@ RUN set -xe; \
pdo_sqlsrv \
redis \
sqlsrv \
ssh2-1.1.2 \
xdebug \
;\
docker-php-ext-enable \
Expand All @@ -218,7 +221,6 @@ RUN set -xe; \
pdo_sqlsrv \
redis \
sqlsrv \
ssh2 \
;\
# Cleanup
docker-php-source delete; \
Expand Down
6 changes: 4 additions & 2 deletions 7.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ RUN set -xe; \
libzip4 \
msodbcsql17 \
;\
# SSH2 must be installed from source for PHP 7.x
git clone https://github.com/php/pecl-networking-ssh2.git /usr/src/php/ext/ssh2 && rm -rf /usr/src/php/ext/ssh2/.git; \
\
docker-php-ext-configure >/dev/null gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
Expand Down Expand Up @@ -192,6 +195,7 @@ RUN set -xe; \
pgsql \
soap \
sockets \
ssh2 \
xsl \
zip \
;\
Expand All @@ -205,7 +209,6 @@ RUN set -xe; \
pdo_sqlsrv \
redis \
sqlsrv \
ssh2-1.1.2 \
xdebug \
;\
docker-php-ext-enable \
Expand All @@ -216,7 +219,6 @@ RUN set -xe; \
pdo_sqlsrv \
redis \
sqlsrv \
ssh2 \
;\
# Cleanup
docker-php-source delete; \
Expand Down
6 changes: 4 additions & 2 deletions 7.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ RUN set -xe; \
libzip4 \
msodbcsql17 \
;\
# SSH2 must be installed from source for PHP 7.x
git clone https://github.com/php/pecl-networking-ssh2.git /usr/src/php/ext/ssh2 && rm -rf /usr/src/php/ext/ssh2/.git; \
\
docker-php-ext-configure >/dev/null gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
Expand Down Expand Up @@ -191,6 +194,7 @@ RUN set -xe; \
pgsql \
soap \
sockets \
ssh2 \
xsl \
zip \
;\
Expand All @@ -204,7 +208,6 @@ RUN set -xe; \
#pdo_sqlsrv - currently not supported in PHP 7.3
redis \
#sqlsrv - currently not supported in PHP 7.3
ssh2-1.1.2 \
# There is currently no stable pecl release of xdebug for PHP 7.3
xdebug-2.7.0beta1 \
;\
Expand All @@ -216,7 +219,6 @@ RUN set -xe; \
#pdo_sqlsrv - currently not supported in PHP 7.3
redis \
#sqlsrv - currently not supported in PHP 7.3
ssh2 \
;\
# Cleanup
docker-php-source delete; \
Expand Down

0 comments on commit d1fe14c

Please sign in to comment.