mirror of
https://github.com/friendica/friendica-docker-ci
synced 2024-11-25 08:44:11 +01:00
Add php7.1 php7.2 and php7.3 images
This commit is contained in:
parent
e3000511b6
commit
f1d0849c86
|
@ -8,13 +8,13 @@ RUN set -ex; \
|
||||||
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; \
|
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; \
|
||||||
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list; \
|
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y php7.1-gd git curl \
|
apt-get install -y php7.1-gd git curl openssl \
|
||||||
php7.1-cli php7.1-curl php7.1-mcrypt php7.1-mysql wget make \
|
php7.1-cli php7.1-curl php7.1-mcrypt php7.1-mysql wget make \
|
||||||
php7.1-redis php7.1-memcached php7.1-memcache php7.1-json php7.1-mcrypt \
|
php7.1-redis php7.1-memcached php7.1-memcache php7.1-json \
|
||||||
php7.1-apcu php7.1-xdebug php7.1-xml php7.1-zip php7.1-dev php7.1-mbstring \
|
php7.1-apcu php7.1-xdebug php7.1-xml php7.1-zip php7.1-dev php7.1-mbstring \
|
||||||
; \
|
; \
|
||||||
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
|
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
|
||||||
|
|
||||||
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv pcntl
|
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv pcntl openssl
|
||||||
RUN phpdismod xdebug
|
RUN phpdismod xdebug
|
||||||
ADD php.ini /etc/php/7.1/cli/conf.d/friendica.ini
|
ADD php.ini /etc/php/7.1/cli/conf.d/friendica.ini
|
20
php7.2/Dockerfile
Normal file
20
php7.2/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
FROM debian:jessie
|
||||||
|
|
||||||
|
# install the PHP extensions we need
|
||||||
|
# see https://friendi.ca/resources/requirements/
|
||||||
|
RUN set -ex; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y wget gnupg2 libzip2 apt-transport-https lsb-release ca-certificates; \
|
||||||
|
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; \
|
||||||
|
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y php7.2-gd git curl openssl \
|
||||||
|
php7.2-cli php7.2-curl php7.2-mysql wget make \
|
||||||
|
php7.2-redis php7.2-memcached php7.2-memcache php7.2-json \
|
||||||
|
php7.2-apcu php7.2-xdebug php7.2-xml php7.2-zip php7.2-dev php7.2-mbstring \
|
||||||
|
; \
|
||||||
|
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
|
||||||
|
|
||||||
|
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv pcntl openssl
|
||||||
|
RUN phpdismod xdebug
|
||||||
|
ADD php.ini /etc/php/7.1/cli/conf.d/friendica.ini
|
10
php7.2/php.ini
Normal file
10
php7.2/php.ini
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
memory_limit = 768M
|
||||||
|
phar.readonly = 0 ; only for building phar files on CI - should be disabled on production environments
|
||||||
|
; Opcache
|
||||||
|
opcache.enable=1
|
||||||
|
opcache.enable_cli=1
|
||||||
|
opcache.interned_strings_buffer=8
|
||||||
|
opcache.max_accelerated_files=10000
|
||||||
|
opcache.memory_consumption=128
|
||||||
|
opcache.save_comments=1
|
||||||
|
opcache.revalidate_freq=1
|
20
php7.3/Dockerfile
Normal file
20
php7.3/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
FROM debian:jessie
|
||||||
|
|
||||||
|
# install the PHP extensions we need
|
||||||
|
# see https://friendi.ca/resources/requirements/
|
||||||
|
RUN set -ex; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y wget gnupg2 libzip2 apt-transport-https lsb-release ca-certificates; \
|
||||||
|
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; \
|
||||||
|
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y php7.3-gd git curl openssl \
|
||||||
|
php7.3-cli php7.3-curl php7.3-mysql wget make \
|
||||||
|
php7.3-redis php7.3-memcached php7.3-memcache php7.3-json \
|
||||||
|
php7.3-apcu php7.3-xdebug php7.3-xml php7.3-zip php7.3-dev php7.3-mbstring \
|
||||||
|
; \
|
||||||
|
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
|
||||||
|
|
||||||
|
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv pcntl openssl
|
||||||
|
RUN phpdismod xdebug
|
||||||
|
ADD php.ini /etc/php/7.1/cli/conf.d/friendica.ini
|
10
php7.3/php.ini
Normal file
10
php7.3/php.ini
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
memory_limit = 768M
|
||||||
|
phar.readonly = 0 ; only for building phar files on CI - should be disabled on production environments
|
||||||
|
; Opcache
|
||||||
|
opcache.enable=1
|
||||||
|
opcache.enable_cli=1
|
||||||
|
opcache.interned_strings_buffer=8
|
||||||
|
opcache.max_accelerated_files=10000
|
||||||
|
opcache.memory_consumption=128
|
||||||
|
opcache.save_comments=1
|
||||||
|
opcache.revalidate_freq=1
|
Loading…
Reference in a new issue