New container: PHP 7.3

This commit is contained in:
cytopia
2018-05-13 17:54:09 +02:00
parent b34ad1daae
commit 9d8167ca77
11 changed files with 1013 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
# Auto-generated via Ansible: edit build/ansible/DOCKERFILES/Dockerfile-base.j2 instead.
{% if php_version == 5.3 %}
FROM devilbox/php-fpm-5.3
{% elif php_version == 7.3 %}
FROM devilbox/php-fpm-7.3
{% else %}
FROM php:{{ php_version }}-fpm
{% endif %}

View File

@@ -26,6 +26,7 @@ php_all_versions:
- 7.0
- 7.1
- 7.2
- 7.3
@@ -93,6 +94,8 @@ apt_repositories_available:
git:
7.2:
deb: deb http://ppa.launchpad.net/git-core/ppa/ubuntu artful main
7.3:
deb: deb http://ppa.launchpad.net/git-core/ppa/ubuntu artful main
all:
deb: deb http://ppa.launchpad.net/git-core/ppa/ubuntu wily main
key: A1715D88E1DF1F24
@@ -103,12 +106,16 @@ apt_repositories_available:
node:
7.2:
deb: deb http://deb.nodesource.com/node_8.x stretch main
7.3:
deb: deb http://deb.nodesource.com/node_8.x stretch main
all:
deb: deb http://deb.nodesource.com/node_8.x jessie main
pre: curl -q "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" 2>/dev/null | apt-key add -
pgsql:
7.2:
deb: deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
7.3:
deb: deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
all:
deb: deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main
pre: curl -q https://www.postgresql.org/media/keys/ACCC4CF8.asc 2>/dev/null | apt-key add -
@@ -283,6 +290,7 @@ software_available:
&& cd / \
&& rm -rf /usr/local/src/mysqldump-secure \
phalcon:
disabled: [7.3]
check: phalcon commands | grep -E '[.0-9]+'
5.3:
pre: |
@@ -491,6 +499,7 @@ extensions_enabled:
# command: [optional] Overwrite default command (phpize && ./configure && make && make install)
extensions_available:
amqp:
disabled: [7.3]
7.2:
type: pecl
run_dep: [librabbitmq4]
@@ -579,6 +588,11 @@ extensions_available:
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
7.3:
type: builtin
configure: --with-gd --with-webp-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --enable-gd-jis-conv
build_dep: [libpng-dev, libjpeg-dev, libxpm-dev, libvpx-dev, zlib1g-dev, libfreetype6-dev, libwebp-dev]
run_dep: [libpng16-16, libjpeg62-turbo, libxpm4, libvpx4, libfreetype6, libwebp6]
all:
type: builtin
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
@@ -611,6 +625,9 @@ extensions_available:
7.2:
type: pecl
run_dep: [libmagickwand-6.q16-3]
7.3:
type: pecl
run_dep: [libmagickwand-6.q16-3]
all:
type: pecl
build_dep: [libmagickwand-dev]
@@ -631,6 +648,9 @@ extensions_available:
7.2:
type: builtin
run_dep: [libicu57]
7.3:
type: builtin
run_dep: [libicu57]
all:
type: builtin
build_dep: [libicu-dev]
@@ -650,17 +670,22 @@ extensions_available:
libxml:
disabled: "{{ php_all_versions }}" # Available by default
mbstring:
disabled: [7.3]
all:
type: builtin
mcrypt:
7.2:
type: pecl
version: 1.0.1
7.3:
type: pecl
version: 1.0.1
all:
type: builtin
run_dep: [libmcrypt4]
build_dep: [libmcrypt-dev]
memcache:
disabled: [7.3]
7.0:
type: git
git_url: https://github.com/websupport-sk/pecl-memcache
@@ -689,12 +714,17 @@ extensions_available:
5.6:
type: pecl
version: 2.2.0
7.3:
type: git
git_url: https://github.com/php-memcached-dev/php-memcached
git_ref: master
command: phpize && ./configure --enable-memcached && make && make install
all:
type: pecl
build_dep: [zlib1g-dev, libmemcached-dev]
run_dep: [libmemcachedutil2]
mongo:
disabled: [7.0, 7.1, 7.2] # Deprecated
disabled: [7.0, 7.1, 7.2, 7.3] # Deprecated
all:
type: pecl
command: yes | pecl install mongo
@@ -712,6 +742,7 @@ extensions_available:
type: pecl
build_dep: [libssl-dev, libsasl2-dev]
msgpack:
disabled: [7.3]
5.3:
type: pecl
version: 0.5.7
@@ -727,7 +758,7 @@ extensions_available:
all:
type: pecl
mysql:
disabled: [7.0, 7.1, 7.2] # Deprecated in newer versions
disabled: [7.0, 7.1, 7.2, 7.3] # Deprecated in newer versions
all:
type: builtin
run_dep: [libmysqlclient18]
@@ -796,6 +827,7 @@ extensions_available:
build_dep: [libpq-dev]
run_dep: [libpq5]
phalcon:
disabled: [7.3]
5.3:
type: git
git_url: https://github.com/phalcon/cphalcon
@@ -806,6 +838,12 @@ extensions_available:
git_url: https://github.com/phalcon/cphalcon
git_ref: phalcon-v2.0.13
command: cd build && ./install
# 7.3:
# type: git
# git_url: https://github.com/phalcon/cphalcon
# git_ref: $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | tail -1 | sed 's/^.*tags\///g')
# # TODO: Workaround to make it compile on PHP 7.3
# command: cd build && echo > php7/64bits/phalcon.zep.c && ./install
all:
type: git
git_url: https://github.com/phalcon/cphalcon
@@ -870,6 +908,9 @@ extensions_available:
7.2:
type: builtin
build_dep: [libsodium-dev]
7.3:
type: builtin
build_dep: [libsodium-dev]
spl:
disabled: "{{ php_all_versions }}" # TODO: Did not work
swoole:
@@ -888,6 +929,9 @@ extensions_available:
7.2:
type: pecl
run_dep: [libnghttp2-14]
7.3:
type: pecl
run_dep: [libnghttp2-14]
all:
type: pecl
build_dep: [libnghttp2-dev, libssl-dev]
@@ -905,6 +949,9 @@ extensions_available:
7.2:
type: builtin
run_dep: [libtidy5]
7.3:
type: builtin
run_dep: [libtidy5]
all:
type: builtin
build_dep: [libtidy-dev]
@@ -925,6 +972,10 @@ extensions_available:
type: git
git_url: https://github.com/php/pecl-php-uploadprogress
configure: --enable-uploadprogress
7.3:
type: git
git_url: https://github.com/php/pecl-php-uploadprogress
configure: --enable-uploadprogress
all:
type: pecl
wddx:
@@ -933,6 +984,7 @@ extensions_available:
configure: --with-libxml-dir=/usr
build_dep: [libxml2-dev]
xdebug:
disabled: [7.3]
5.3:
type: pecl
version: 2.2.7
@@ -953,7 +1005,7 @@ extensions_available:
configure: --with-libxml-dir=/usr
build_dep: [libxml2-dev]
xmlreader:
disabled: [7.0, 7.1, 7.2] # Available by default
disabled: [7.0, 7.1, 7.2, 7.3] # Available by default
all:
type: builtin
configure: --with-libxml-dir=/usr
@@ -992,6 +1044,9 @@ extensions_available:
7.2:
type: builtin
run_dep: [libzip4]
7.3:
type: builtin
run_dep: [libzip4]
all:
type: builtin
configure: --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip

View File

@@ -6,3 +6,4 @@ php-5.6 php_version=5.6 ansible_connection=local
php-7.0 php_version=7.0 ansible_connection=local
php-7.1 php_version=7.1 ansible_connection=local
php-7.2 php_version=7.2 ansible_connection=local
php-7.3 php_version=7.3 ansible_connection=local

View File

@@ -21,6 +21,7 @@ print_usage() {
echo " gen-readme.sh 7.0"
echo " gen-readme.sh 7.1"
echo " gen-readme.sh 7.2"
echo " gen-readme.sh 7.3"
}
@@ -69,6 +70,7 @@ if [ "${#}" -eq "0" ]; then
update_readme "7.0"
update_readme "7.1"
update_readme "7.2"
update_readme "7.3"
elif [ "${#}" -gt "1" ]; then
# Specifying more than 1 argument is wrong
echo "Error, invalid number of arguments."
@@ -81,7 +83,8 @@ else
&& [ "${1}" != "5.6" ] \
&& [ "${1}" != "7.0" ] \
&& [ "${1}" != "7.1" ] \
&& [ "${1}" != "7.2" ]; then
&& [ "${1}" != "7.2" ] \
&& [ "${1}" != "7.3" ]; then
# Argument does not match any of the PHP versions
echo "Error, invalid argument."
print_usage