Skip to content

Commit e789fb0

Browse files
OskarStarkDracoBlue
authored andcommitted
added PHP 7.3.0 (#57)
* added PHP 7.3.0 * deactivated ssh2 and memcached for PHP 7.3.0
1 parent 32466b9 commit e789fb0

File tree

3 files changed

+104
-3
lines changed

3 files changed

+104
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ script:
1111
- docker run --rm -it exozet/php-fpm:${PHP_VERSION} php -v
1212

1313
env:
14+
- PHP_VERSION=7.3.0 PHP_VERSION_ALIAS=7.3
1415
- PHP_VERSION=7.2.0
1516
- PHP_VERSION=7.2.1
1617
- PHP_VERSION=7.2.2

7.3/Dockerfile

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
FROM php:7.3-fpm
2+
3+
## ssh2
4+
#RUN apt-get update && apt-get install -y libssh2-1-dev libssh2-1
5+
#RUN pecl install ssh2-1.1.2
6+
#RUN echo extension=ssh2.so >> /usr/local/etc/php/conf.d/ssh2.ini
7+
## ssh2
8+
9+
#RUN apt-get update && apt-get install -y libz-dev libmemcached-dev
10+
#RUN pecl install memcached-3.0.4
11+
#RUN echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini
12+
13+
# gd extension
14+
RUN apt-get update && apt-get install -y \
15+
libpng-dev \
16+
libfreetype6-dev \
17+
libjpeg-dev \
18+
libxpm-dev \
19+
libxml2-dev \
20+
libxslt-dev \
21+
libwebp-dev # php >=7.0 (use libvpx for php <7.0)
22+
RUN docker-php-ext-configure gd \
23+
--with-freetype-dir=/usr/include/ \
24+
--with-jpeg-dir=/usr/include/ \
25+
--with-xpm-dir=/usr/include \
26+
--with-webp-dir=/usr/include/ # php >=7.0 (use libvpx for php <7.0)
27+
RUN docker-php-ext-install gd
28+
29+
RUN apt-get update && apt-get install -y libz-dev libzip-dev
30+
RUN docker-php-ext-install zip
31+
RUN docker-php-ext-install xsl
32+
33+
RUN apt-get update && apt-get install -y libicu-dev
34+
RUN docker-php-ext-install intl
35+
36+
RUN docker-php-ext-install mysqli
37+
RUN docker-php-ext-install pdo_mysql
38+
RUN docker-php-ext-install opcache
39+
RUN docker-php-ext-install bcmath
40+
RUN docker-php-ext-install calendar
41+
42+
# ldap
43+
RUN apt-get update && apt-get install libldap2-dev -y && \
44+
rm -rf /var/lib/apt/lists/* && \
45+
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
46+
docker-php-ext-install ldap
47+
# ldap
48+
49+
RUN docker-php-ext-configure pcntl --enable-pcntl \
50+
&& docker-php-ext-install pcntl
51+
52+
RUN pecl install xdebug-2.7.0beta1
53+
RUN echo "zend_extension=`php -i | grep ^extension_dir | cut -f 3 -d ' '`/xdebug.so" >> /usr/local/etc/php/conf.d/xdebug.ini
54+
55+
RUN docker-php-ext-install soap
56+
57+
ENV COMPOSER_HOME=/composer
58+
COPY --from=composer:1.7.1 /usr/bin/composer /usr/local/bin/composer
59+
60+
RUN apt-get update && apt-get install -y git vim mysql-client rsync sshpass bzip2 msmtp unzip
61+
62+
ADD php.ini /usr/local/etc/php/php.ini
63+
64+
# Cron
65+
RUN apt-get update && apt-get install -y cron \
66+
&& mkfifo --mode 0666 /var/log/cron.log \
67+
&& sed --regexp-extended --in-place \
68+
's/^session\s+required\s+pam_loginuid.so$/session optional pam_loginuid.so/' \
69+
/etc/pam.d/cron
70+
71+
COPY start-cron /usr/sbin
72+
RUN chmod +x /usr/sbin/start-cron
73+
# Cron
74+
75+
ENV PHP_DATE_TIMEZONE="" \
76+
PHP_LOG_ERRORS_MAX_LEN=1024 \
77+
PHP_LOG_ERRORS="" \
78+
PHP_MAX_EXECUTION_TIME=0 \
79+
PHP_MAX_FILE_UPLOADS=20 \
80+
PHP_MAX_INPUT_VARS=1000 \
81+
PHP_MEMORY_LIMIT=128M \
82+
PHP_POST_MAX_SIZE=8M \
83+
PHP_SENDMAIL_PATH="/usr/sbin/sendmail -t -i" \
84+
PHP_SESSION_SAVE_HANDLER=files \
85+
PHP_SESSION_SAVE_PATH="" \
86+
PHP_UPLOAD_MAX_FILESIZE=2M \
87+
PHP_XDEBUG_DEFAULT_ENABLE=0 \
88+
PHP_XDEBUG_IDEKEY=''\
89+
PHP_XDEBUG_PROFILER_ENABLE=0 \
90+
PHP_XDEBUG_REMOTE_AUTOSTART=0 \
91+
PHP_XDEBUG_REMOTE_CONNECT_BACK=0 \
92+
PHP_XDEBUG_REMOTE_ENABLE=0 \
93+
PHP_XDEBUG_REMOTE_HOST=0
94+
95+
WORKDIR /usr/src/app
96+
97+
# imagick
98+
RUN apt-get update && apt-get install -y libmagickwand-dev \
99+
&& pecl install imagick \
100+
&& docker-php-ext-enable imagick

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is a docker php fpm image, based on the official php fpm image. It has the following additions:
44

55
- extensions
6-
- memcached (2.2.0 for php <7.0, 3.0.3 for php >=7.0)
6+
- memcached (2.2.0 for php <7.0, 3.0.3 for php >=7.0, currently disabled in 7.3)
77
- gd (2.1.0)
88
- png (1.2.50)
99
- jpeg (6b)
@@ -21,7 +21,7 @@ This is a docker php fpm image, based on the official php fpm image. It has the
2121
- pdo_mysql (5.0.11-dev)
2222
- pdo_pgsql
2323
- pgsql
24-
- xdebug (2.4.0 for php <5.5, 2.5.5 for php <7.0, 2.6.1 for php >=7.0)
24+
- xdebug (2.4.0 for php <5.5, 2.5.5 for php <7.0, 2.6.1 for php 7.0, 7.1 & 7.2, 2.7.0beta1 for php 7.3)
2525
- opcache (for php >=5.5, since it's replacing apc since 5.5)
2626
- apc (for php <5.5, since it's replaced by opcache since 5.5)
2727
- pcntl
@@ -32,7 +32,7 @@ This is a docker php fpm image, based on the official php fpm image. It has the
3232
- calendar
3333
- ldap
3434
- redis
35-
- ssh2 (0.13 for php 5 and 1.1.3 for php 7 https://pecl.php.net/package/ssh2)
35+
- ssh2 (0.13 for php 5 and 1.1.3 for php 7 https://pecl.php.net/package/ssh2, currently disabled in 7.3)
3636
- amqp
3737
- sockets
3838
- composer cli (1.8.0)

0 commit comments

Comments
 (0)