Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add php ssh support #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
ARG PHP=7.1
FROM php:$PHP-apache
#libs: libjudy-dev need this for memprof
ARG libs="libfreetype6 libjpeg62-turbo liblz4-tool libjudy-dev"
ARG libs="libfreetype6 libjpeg62-turbo liblz4-tool libjudy-dev libssh2-1"
ARG remoteTools="rsync wget openssh-client"
ARG fontTools="fontforge ttfautohint"
ARG editors="less nano"
ARG tools="$editors $fontTools $remoteTools python3-pip nvi iproute2 ack-grep unzip git default-mysql-client sudo make socat dnsutils iputils-ping netcat"
ARG RUNTIME_PACKAGE_DEPS="$libs $tools msmtp bc locales"

ARG BUILD_PACKAGE_DEPS="libcurl4-openssl-dev libjpeg-dev libpng-dev libxml2-dev libzip-dev"
ARG BUILD_PACKAGE_DEPS="libcurl4-openssl-dev libjpeg-dev libpng-dev libxml2-dev libzip-dev libssh2-1-dev"

ARG PHP_EXT_DEPS="curl json xml mbstring zip bcmath soap pdo_mysql gd mysqli"
ARG PECL_DEPS="memprof xdebug"
ARG PHP_EXT_DEPS="curl json xml mbstring zip bcmath soap pdo_mysql gd mysqli "
ARG PECL_DEPS="memprof ssh2-1.2"
ARG PHP_MEMORY_LIMIT="-1"

RUN ln -s /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
Expand All @@ -28,7 +28,7 @@ RUN apt-get update -y \
$BUILD_PACKAGE_DEPS \
&& docker-php-ext-configure gd --with-jpeg-dir=/usr/local/ \
&& docker-php-ext-install -j$(nproc) $PHP_EXT_DEPS \
&& pecl install $PECL_DEPS \
&& pecl install $PECL_DEPS <<<'' \
&& docker-php-ext-enable $PECL_DEPS \
&& docker-php-source delete \
&& apt-get clean \
Expand Down