mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-01-12 14:47:55 +03:00
php 7.4 dependency hell fix
This commit is contained in:
parent
704b4e3ea5
commit
4286941d53
@ -20,7 +20,7 @@ ARG P4API_URL=https://www.perforce.com/downloads/perforce/${P4API_VER}/bin.linux
|
|||||||
ARG P4PHP_VER=r20.1
|
ARG P4PHP_VER=r20.1
|
||||||
ARG P4PHP_URL=https://www.perforce.com/downloads/perforce/${P4PHP_VER}/bin.tools/p4php-php7.tgz
|
ARG P4PHP_URL=https://www.perforce.com/downloads/perforce/${P4PHP_VER}/bin.tools/p4php-php7.tgz
|
||||||
|
|
||||||
ARG P4MODULE_PATH=/usr/lib/php/20190902
|
ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Files and folders
|
# Files and folders
|
||||||
@ -31,13 +31,12 @@ RUN mkdir -p ${BUILDS_DIR} ${SRC_DIR} ${EXPORT_DIR} ${MAKE_DIR} ${P4API_DIR} ${P
|
|||||||
# Installing PHP7
|
# Installing PHP7
|
||||||
##################################################################
|
##################################################################
|
||||||
#installing php repo
|
#installing php repo
|
||||||
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
|
|
||||||
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
|
|
||||||
#Install base packages
|
#Install base packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated \
|
apt-get install -y --allow-unauthenticated \
|
||||||
libmemcached-dev \
|
libmemcached-dev \
|
||||||
|
smbclient libsmbclient libsmbclient-dev \
|
||||||
php7.4 \
|
php7.4 \
|
||||||
php7.4-dev \
|
php7.4-dev \
|
||||||
php7.4-fpm \
|
php7.4-fpm \
|
||||||
@ -70,7 +69,14 @@ RUN cd ${MAKE_DIR} && \
|
|||||||
make && \
|
make && \
|
||||||
make test && \
|
make test && \
|
||||||
make install && \
|
make install && \
|
||||||
cp ${P4MODULE_PATH}/perforce.so ${EXPORT_DIR}
|
cp ${PHP_MODULE_PATH}/perforce.so ${EXPORT_DIR}
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# compilling smbclient
|
||||||
|
##################################################################
|
||||||
|
RUN pecl install smbclient && \
|
||||||
|
cp ${PHP_MODULE_PATH}/smbclient.so ${EXPORT_DIR}
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
##################################################################
|
##################################################################
|
||||||
@ -88,59 +94,58 @@ ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
|||||||
ARG PHP_VER=7.4
|
ARG PHP_VER=7.4
|
||||||
ARG PHP_DIR=/etc/php/${PHP_VER}
|
ARG PHP_DIR=/etc/php/${PHP_VER}
|
||||||
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
||||||
|
ARG SMB_PHP_INI=${PHP_DIR}/mods-available/smbclient.ini
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing PHP7
|
# Installing PHP7
|
||||||
##################################################################
|
##################################################################
|
||||||
#installing php repo
|
|
||||||
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
|
|
||||||
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
|
|
||||||
#Install base packages
|
#Install base packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated \
|
apt-get install -y --allow-unauthenticated \
|
||||||
libmemcached-dev \
|
|
||||||
php7.4 \
|
php7.4 \
|
||||||
php7.4-dev \
|
php7.4-dev \
|
||||||
php7.4-fpm \
|
php7.4-fpm \
|
||||||
php7.4-cli \
|
php7.4-cli \
|
||||||
php7.4-cgi \
|
php7.4-cgi \
|
||||||
php-pear \
|
php-pear \
|
||||||
php-gmp \
|
php7.4-gmp \
|
||||||
php-snmp \
|
php7.4-snmp \
|
||||||
php-ldap \
|
php7.4-ldap \
|
||||||
php-mail \
|
php7.4-mail \
|
||||||
php-soap \
|
php7.4-soap \
|
||||||
php-mysql \
|
php7.4-mysql \
|
||||||
php-memcached \
|
php7.4-memcached \
|
||||||
php-memcache \
|
php7.4-memcache \
|
||||||
php-igbinary \
|
php7.4-igbinary \
|
||||||
php-curl \
|
php7.4-interbase \
|
||||||
php-gd \
|
php7.4-curl \
|
||||||
php-intl \
|
php7.4-gd \
|
||||||
php-zip \
|
php7.4-intl \
|
||||||
php-bcmath \
|
php7.4-zip \
|
||||||
php-imap \
|
php7.4-bcmath \
|
||||||
php-pspell \
|
php7.4-imap \
|
||||||
php-sqlite3 \
|
php7.4-pspell \
|
||||||
php-tidy \
|
php7.4-sqlite3 \
|
||||||
php-xmlrpc \
|
php7.4-tidy \
|
||||||
php-xml \
|
php7.4-xmlrpc \
|
||||||
php-mbstring \
|
php7.4-xml \
|
||||||
php-apcu \
|
php7.4-mbstring \
|
||||||
php-common \
|
php7.4-apcu \
|
||||||
php-json \
|
php7.4-common \
|
||||||
php-readline \
|
php7.4-json \
|
||||||
php-enchant \
|
php7.4-readline \
|
||||||
php-ssh2 \
|
php7.4-enchant \
|
||||||
php-oauth \
|
php7.4-ssh2 \
|
||||||
php-gmagick \
|
php7.4-oauth \
|
||||||
php-gnupg \
|
php7.4-gmagick \
|
||||||
php-redis \
|
php7.4-gnupg \
|
||||||
php-smbclient \
|
php7.4-redis \
|
||||||
php-yaml \
|
smbclient libsmbclient \
|
||||||
php-geoip \
|
# php-smbclient \
|
||||||
|
php7.4-yaml \
|
||||||
|
php7.4-geoip \
|
||||||
sendmail && \
|
sendmail && \
|
||||||
|
update-alternatives --set php /usr/bin/php7.4 && \
|
||||||
phpenmod \
|
phpenmod \
|
||||||
snmp \
|
snmp \
|
||||||
gmp \
|
gmp \
|
||||||
@ -205,6 +210,19 @@ RUN echo "extension=perforce.so" > ${P4_PHP_INI} && \
|
|||||||
php -m && \
|
php -m && \
|
||||||
php -v
|
php -v
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing smbclient addon
|
||||||
|
##################################################################
|
||||||
|
COPY --from=builder /builds/export/smbclient.so ${PHP_MODULE_PATH}
|
||||||
|
RUN echo "extension=smbclient.so" > ${SMB_PHP_INI} && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/cgi/conf.d/smbclient.ini && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/cli/conf.d/smbclient.ini && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/fpm/conf.d/smbclient.ini && \
|
||||||
|
php -m && \
|
||||||
|
php -v
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing Composer addon
|
# Installing Composer addon
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -20,7 +20,7 @@ ARG P4API_URL=https://www.perforce.com/downloads/perforce/${P4API_VER}/bin.linux
|
|||||||
ARG P4PHP_VER=r20.1
|
ARG P4PHP_VER=r20.1
|
||||||
ARG P4PHP_URL=https://www.perforce.com/downloads/perforce/${P4PHP_VER}/bin.tools/p4php-php7.tgz
|
ARG P4PHP_URL=https://www.perforce.com/downloads/perforce/${P4PHP_VER}/bin.tools/p4php-php7.tgz
|
||||||
|
|
||||||
ARG P4MODULE_PATH=/usr/lib/php/20190902
|
ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Files and folders
|
# Files and folders
|
||||||
@ -30,14 +30,11 @@ RUN mkdir -p ${BUILDS_DIR} ${SRC_DIR} ${EXPORT_DIR} ${MAKE_DIR} ${P4API_DIR} ${P
|
|||||||
##################################################################
|
##################################################################
|
||||||
# Installing PHP7
|
# Installing PHP7
|
||||||
##################################################################
|
##################################################################
|
||||||
#installing php repo
|
|
||||||
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
|
|
||||||
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
|
|
||||||
#Install base packages
|
#Install base packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated \
|
apt-get install -y --allow-unauthenticated \
|
||||||
libmemcached-dev \
|
libmemcached-dev \
|
||||||
|
smbclient libsmbclient libsmbclient-dev \
|
||||||
php7.4 \
|
php7.4 \
|
||||||
php7.4-dev \
|
php7.4-dev \
|
||||||
php7.4-fpm \
|
php7.4-fpm \
|
||||||
@ -70,7 +67,14 @@ RUN cd ${MAKE_DIR} && \
|
|||||||
make && \
|
make && \
|
||||||
make test && \
|
make test && \
|
||||||
make install && \
|
make install && \
|
||||||
cp ${P4MODULE_PATH}/perforce.so ${EXPORT_DIR}
|
cp ${PHP_MODULE_PATH}/perforce.so ${EXPORT_DIR}
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# compilling smbclient
|
||||||
|
##################################################################
|
||||||
|
RUN pecl install smbclient && \
|
||||||
|
cp ${PHP_MODULE_PATH}/smbclient.so ${EXPORT_DIR}
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
##################################################################
|
##################################################################
|
||||||
@ -84,14 +88,11 @@ ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
|||||||
ARG PHP_VER=7.4
|
ARG PHP_VER=7.4
|
||||||
ARG PHP_DIR=/etc/php/${PHP_VER}
|
ARG PHP_DIR=/etc/php/${PHP_VER}
|
||||||
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
||||||
|
ARG SMB_PHP_INI=${PHP_DIR}/mods-available/smbclient.ini
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing PHP7
|
# Installing PHP7
|
||||||
##################################################################
|
##################################################################
|
||||||
#installing php repo
|
|
||||||
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
|
|
||||||
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
|
|
||||||
#Install base packages
|
#Install base packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated \
|
apt-get install -y --allow-unauthenticated \
|
||||||
@ -102,42 +103,44 @@ RUN apt-get update && \
|
|||||||
php7.4-cli \
|
php7.4-cli \
|
||||||
php7.4-cgi \
|
php7.4-cgi \
|
||||||
php-pear \
|
php-pear \
|
||||||
php-gmp \
|
php7.4-gmp \
|
||||||
php-snmp \
|
php7.4-snmp \
|
||||||
php-ldap \
|
php7.4-ldap \
|
||||||
php-mail \
|
php7.4-mail \
|
||||||
php-soap \
|
php7.4-soap \
|
||||||
php-mysql \
|
php7.4-mysql \
|
||||||
php-memcached \
|
php7.4-memcached \
|
||||||
php-memcache \
|
php7.4-memcache \
|
||||||
php-igbinary \
|
php7.4-igbinary \
|
||||||
php-interbase \
|
php7.4-interbase \
|
||||||
php-curl \
|
php7.4-curl \
|
||||||
php-gd \
|
php7.4-gd \
|
||||||
php-intl \
|
php7.4-intl \
|
||||||
php-zip \
|
php7.4-zip \
|
||||||
php-bcmath \
|
php7.4-bcmath \
|
||||||
php-imap \
|
php7.4-imap \
|
||||||
php-pspell \
|
php7.4-pspell \
|
||||||
php-sqlite3 \
|
php7.4-sqlite3 \
|
||||||
php-tidy \
|
php7.4-tidy \
|
||||||
php-xmlrpc \
|
php7.4-xmlrpc \
|
||||||
php-xml \
|
php7.4-xml \
|
||||||
php-mbstring \
|
php7.4-mbstring \
|
||||||
php-apcu \
|
php7.4-apcu \
|
||||||
php-common \
|
php7.4-common \
|
||||||
php-json \
|
php7.4-json \
|
||||||
php-readline \
|
php7.4-readline \
|
||||||
php-enchant \
|
php7.4-enchant \
|
||||||
php-ssh2 \
|
php7.4-ssh2 \
|
||||||
php-oauth \
|
php7.4-oauth \
|
||||||
php-gmagick \
|
php7.4-gmagick \
|
||||||
php-gnupg \
|
php7.4-gnupg \
|
||||||
php-redis \
|
php7.4-redis \
|
||||||
php-smbclient \
|
smbclient libsmbclient \
|
||||||
php-yaml \
|
# php-smbclient \
|
||||||
php-geoip \
|
php7.4-yaml \
|
||||||
|
php7.4-geoip \
|
||||||
sendmail && \
|
sendmail && \
|
||||||
|
update-alternatives --set php /usr/bin/php7.4 && \
|
||||||
phpenmod \
|
phpenmod \
|
||||||
snmp \
|
snmp \
|
||||||
gmp \
|
gmp \
|
||||||
@ -203,6 +206,17 @@ RUN echo "extension=perforce.so" > ${P4_PHP_INI} && \
|
|||||||
php -m && \
|
php -m && \
|
||||||
php -v
|
php -v
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing smbclient addon
|
||||||
|
##################################################################
|
||||||
|
COPY --from=builder /builds/export/smbclient.so ${PHP_MODULE_PATH}
|
||||||
|
RUN echo "extension=smbclient.so" > ${SMB_PHP_INI} && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/cgi/conf.d/smbclient.ini && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/cli/conf.d/smbclient.ini && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/fpm/conf.d/smbclient.ini && \
|
||||||
|
php -m && \
|
||||||
|
php -v
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing Composer addon
|
# Installing Composer addon
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -20,7 +20,7 @@ ARG P4API_URL=https://www.perforce.com/downloads/perforce/${P4API_VER}/bin.linux
|
|||||||
ARG P4PHP_VER=r20.1
|
ARG P4PHP_VER=r20.1
|
||||||
ARG P4PHP_URL=https://www.perforce.com/downloads/perforce/${P4PHP_VER}/bin.tools/p4php-php7.tgz
|
ARG P4PHP_URL=https://www.perforce.com/downloads/perforce/${P4PHP_VER}/bin.tools/p4php-php7.tgz
|
||||||
|
|
||||||
ARG P4MODULE_PATH=/usr/lib/php/20190902
|
ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Files and folders
|
# Files and folders
|
||||||
@ -30,14 +30,11 @@ RUN mkdir -p ${BUILDS_DIR} ${SRC_DIR} ${EXPORT_DIR} ${MAKE_DIR} ${P4API_DIR} ${P
|
|||||||
##################################################################
|
##################################################################
|
||||||
# Installing PHP7
|
# Installing PHP7
|
||||||
##################################################################
|
##################################################################
|
||||||
#installing php repo
|
|
||||||
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
|
|
||||||
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
|
|
||||||
#Install base packages
|
#Install base packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated \
|
apt-get install -y --allow-unauthenticated \
|
||||||
libmemcached-dev \
|
libmemcached-dev \
|
||||||
|
smbclient libsmbclient libsmbclient-dev \
|
||||||
php7.4 \
|
php7.4 \
|
||||||
php7.4-dev \
|
php7.4-dev \
|
||||||
php7.4-fpm \
|
php7.4-fpm \
|
||||||
@ -70,7 +67,14 @@ RUN cd ${MAKE_DIR} && \
|
|||||||
make && \
|
make && \
|
||||||
make test && \
|
make test && \
|
||||||
make install && \
|
make install && \
|
||||||
cp ${P4MODULE_PATH}/perforce.so ${EXPORT_DIR}
|
cp ${PHP_MODULE_PATH}/perforce.so ${EXPORT_DIR}
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# compilling smbclient
|
||||||
|
##################################################################
|
||||||
|
RUN pecl install smbclient && \
|
||||||
|
cp ${PHP_MODULE_PATH}/smbclient.so ${EXPORT_DIR}
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
##################################################################
|
##################################################################
|
||||||
@ -84,14 +88,11 @@ ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
|||||||
ARG PHP_VER=7.4
|
ARG PHP_VER=7.4
|
||||||
ARG PHP_DIR=/etc/php/${PHP_VER}
|
ARG PHP_DIR=/etc/php/${PHP_VER}
|
||||||
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
||||||
|
ARG SMB_PHP_INI=${PHP_DIR}/mods-available/smbclient.ini
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing PHP7
|
# Installing PHP7
|
||||||
##################################################################
|
##################################################################
|
||||||
#installing php repo
|
|
||||||
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
|
|
||||||
RUN sh -c 'echo "deb https://packages.sury.org/php/ buster main" > /etc/apt/sources.list.d/php.list'
|
|
||||||
|
|
||||||
#Install base packages
|
#Install base packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --allow-unauthenticated \
|
apt-get install -y --allow-unauthenticated \
|
||||||
@ -102,42 +103,44 @@ RUN apt-get update && \
|
|||||||
php7.4-cli \
|
php7.4-cli \
|
||||||
php7.4-cgi \
|
php7.4-cgi \
|
||||||
php-pear \
|
php-pear \
|
||||||
php-gmp \
|
php7.4-gmp \
|
||||||
php-snmp \
|
php7.4-snmp \
|
||||||
php-ldap \
|
php7.4-ldap \
|
||||||
php-mail \
|
php7.4-mail \
|
||||||
php-soap \
|
php7.4-soap \
|
||||||
php-mysql \
|
php7.4-mysql \
|
||||||
php-memcached \
|
php7.4-memcached \
|
||||||
php-memcache \
|
php7.4-memcache \
|
||||||
php-igbinary \
|
php7.4-igbinary \
|
||||||
php-interbase \
|
php7.4-interbase \
|
||||||
php-curl \
|
php7.4-curl \
|
||||||
php-gd \
|
php7.4-gd \
|
||||||
php-intl \
|
php7.4-intl \
|
||||||
php-zip \
|
php7.4-zip \
|
||||||
php-bcmath \
|
php7.4-bcmath \
|
||||||
php-imap \
|
php7.4-imap \
|
||||||
php-pspell \
|
php7.4-pspell \
|
||||||
php-sqlite3 \
|
php7.4-sqlite3 \
|
||||||
php-tidy \
|
php7.4-tidy \
|
||||||
php-xmlrpc \
|
php7.4-xmlrpc \
|
||||||
php-xml \
|
php7.4-xml \
|
||||||
php-mbstring \
|
php7.4-mbstring \
|
||||||
php-apcu \
|
php7.4-apcu \
|
||||||
php-common \
|
php7.4-common \
|
||||||
php-json \
|
php7.4-json \
|
||||||
php-readline \
|
php7.4-readline \
|
||||||
php-enchant \
|
php7.4-enchant \
|
||||||
php-ssh2 \
|
php7.4-ssh2 \
|
||||||
php-oauth \
|
php7.4-oauth \
|
||||||
php-gmagick \
|
php7.4-gmagick \
|
||||||
php-gnupg \
|
php7.4-gnupg \
|
||||||
php-redis \
|
php7.4-redis \
|
||||||
php-smbclient \
|
smbclient libsmbclient \
|
||||||
php-yaml \
|
# php-smbclient \
|
||||||
php-geoip \
|
php7.4-yaml \
|
||||||
|
php7.4-geoip \
|
||||||
sendmail && \
|
sendmail && \
|
||||||
|
update-alternatives --set php /usr/bin/php7.4 && \
|
||||||
phpenmod \
|
phpenmod \
|
||||||
snmp \
|
snmp \
|
||||||
gmp \
|
gmp \
|
||||||
@ -203,6 +206,17 @@ RUN echo "extension=perforce.so" > ${P4_PHP_INI} && \
|
|||||||
php -m && \
|
php -m && \
|
||||||
php -v
|
php -v
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing smbclient addon
|
||||||
|
##################################################################
|
||||||
|
COPY --from=builder /builds/export/smbclient.so ${PHP_MODULE_PATH}
|
||||||
|
RUN echo "extension=smbclient.so" > ${SMB_PHP_INI} && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/cgi/conf.d/smbclient.ini && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/cli/conf.d/smbclient.ini && \
|
||||||
|
ln -sf ${SMB_PHP_INI} ${PHP_DIR}/fpm/conf.d/smbclient.ini && \
|
||||||
|
php -m && \
|
||||||
|
php -v
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing Composer addon
|
# Installing Composer addon
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -6,6 +6,7 @@ ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
|||||||
ARG PHP_VER=7.4
|
ARG PHP_VER=7.4
|
||||||
ARG PHP_DIR=/etc/php/${PHP_VER}
|
ARG PHP_DIR=/etc/php/${PHP_VER}
|
||||||
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
||||||
|
ARG SMB_PHP_INI=${PHP_DIR}/mods-available/smbclient.ini
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing Apache2
|
# Installing Apache2
|
||||||
@ -22,8 +23,7 @@ RUN apt-get update && \
|
|||||||
libapache2-mod-php7.4 \
|
libapache2-mod-php7.4 \
|
||||||
libapache2-mod-webauth \
|
libapache2-mod-webauth \
|
||||||
libapache2-mod-xforward \
|
libapache2-mod-xforward \
|
||||||
libapache2-mod-security2 \
|
libapache2-mod-security2 && \
|
||||||
libmemcached-dev && \
|
|
||||||
a2enmod \
|
a2enmod \
|
||||||
php7.4 \
|
php7.4 \
|
||||||
rewrite \
|
rewrite \
|
||||||
@ -66,6 +66,13 @@ RUN ln -sf ${P4_PHP_INI} ${PHP_DIR}/apache2/conf.d/perforce.ini && \
|
|||||||
php -m && \
|
php -m && \
|
||||||
php -v
|
php -v
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing smbclient addon
|
||||||
|
##################################################################
|
||||||
|
RUN ln -sf ${SMB_PHP_INI} ${PHP_DIR}/apache2/conf.d/smbclient.ini && \
|
||||||
|
php -m && \
|
||||||
|
php -v
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# cleaninig up
|
# cleaninig up
|
||||||
##################################################################
|
##################################################################
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM epicmorg/php:php7.4
|
FROM epicmorg/php:latest
|
||||||
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
@ -6,6 +6,7 @@ ARG PHP_MODULE_PATH=/usr/lib/php/20190902
|
|||||||
ARG PHP_VER=7.4
|
ARG PHP_VER=7.4
|
||||||
ARG PHP_DIR=/etc/php/${PHP_VER}
|
ARG PHP_DIR=/etc/php/${PHP_VER}
|
||||||
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
ARG P4_PHP_INI=${PHP_DIR}/mods-available/perfroce.ini
|
||||||
|
ARG SMB_PHP_INI=${PHP_DIR}/mods-available/smbclient.ini
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Installing Apache2
|
# Installing Apache2
|
||||||
@ -22,8 +23,7 @@ RUN apt-get update && \
|
|||||||
libapache2-mod-php7.4 \
|
libapache2-mod-php7.4 \
|
||||||
libapache2-mod-webauth \
|
libapache2-mod-webauth \
|
||||||
libapache2-mod-xforward \
|
libapache2-mod-xforward \
|
||||||
libapache2-mod-security2 \
|
libapache2-mod-security2 && \
|
||||||
libmemcached-dev && \
|
|
||||||
a2enmod \
|
a2enmod \
|
||||||
php7.4 \
|
php7.4 \
|
||||||
rewrite \
|
rewrite \
|
||||||
@ -66,6 +66,13 @@ RUN ln -sf ${P4_PHP_INI} ${PHP_DIR}/apache2/conf.d/perforce.ini && \
|
|||||||
php -m && \
|
php -m && \
|
||||||
php -v
|
php -v
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Installing smbclient addon
|
||||||
|
##################################################################
|
||||||
|
RUN ln -sf ${SMB_PHP_INI} ${PHP_DIR}/apache2/conf.d/smbclient.ini && \
|
||||||
|
php -m && \
|
||||||
|
php -v
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# cleaninig up
|
# cleaninig up
|
||||||
##################################################################
|
##################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user