Add PHP-FPM 8.0 support

This commit is contained in:
cytopia
2019-02-09 12:38:36 +01:00
parent 926df09109
commit 244605f9b5
15 changed files with 1638 additions and 52 deletions

View File

@@ -5,6 +5,8 @@ FROM devilbox/php-fpm-5.2
FROM devilbox/php-fpm-5.3
{% elif php_version == 7.4 %}
FROM devilbox/php-fpm-7.4
{% elif php_version == 8.0 %}
FROM devilbox/php-fpm-8.0
{% else %}
FROM php:{{ php_version }}-fpm
{% endif %}

View File

@@ -19,6 +19,7 @@ php_all_versions:
- 7.2
- 7.3
- 7.4
- 8.0
###
@@ -259,6 +260,8 @@ apt_repositories_available:
deb: deb http://ppa.launchpad.net/git-core/ppa/ubuntu artful main
7.4:
deb: deb http://ppa.launchpad.net/git-core/ppa/ubuntu artful main
8.0:
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
@@ -273,6 +276,8 @@ apt_repositories_available:
deb: deb http://deb.nodesource.com/node_8.x stretch main
7.4:
deb: deb http://deb.nodesource.com/node_8.x stretch main
8.0:
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 -sS "https://deb.nodesource.com/gpgkey/nodesource.gpg.key" 2>/dev/null | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add -
@@ -283,6 +288,8 @@ apt_repositories_available:
deb: deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
7.4:
deb: deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main
8.0:
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 -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc 2>/dev/null | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add -
@@ -307,7 +314,7 @@ apt_repositories_available:
#
software_available:
asgardcms:
disabled: [5.2, 5.3, 5.4]
disabled: [5.2, 5.3, 5.4, 8.0]
check: asgardcms --version 2>/dev/null | grep -Ei 'AsgardCMS\sInstaller\s[.0-9]+'
all:
command: |
@@ -368,7 +375,7 @@ software_available:
command: curl -sS https://deployer.org/deployer.phar -L -o /usr/local/bin/dep
post: chmod +x /usr/local/bin/dep
drush7:
disabled: [5.2]
disabled: [5.2, 8.0]
check: drush7 --version | grep -E '7[.0-9]+\s*$'
all:
pre: |
@@ -384,7 +391,7 @@ software_available:
&& rm -rf /usr/local/src/drush7/examples \
&& rm -rf /usr/local/src/drush7/misc \
drush8:
disabled: [5.2, 5.3]
disabled: [5.2, 5.3, 8.0]
check: drush8 --version | grep -E '8[.0-9]+\s*$'
all:
pre: |
@@ -400,7 +407,7 @@ software_available:
&& rm -rf /usr/local/src/drush8/examples \
&& rm -rf /usr/local/src/drush8/misc \
drush9:
disabled: [5.2, 5.3, 5.4, 5.5]
disabled: [5.2, 5.3, 5.4, 5.5, 8.0]
check: drush9 --version | grep -E '9[.0-9]+\s*$'
all:
pre: |
@@ -416,7 +423,7 @@ software_available:
&& rm -rf /usr/local/src/drush9/examples \
&& rm -rf /usr/local/src/drush9/misc \
codeception:
disabled: [5.2]
disabled: [5.2, 8.0]
check: codecept --version 2>/dev/null | grep -E '^Codeception(\sversion)?\s[.0-9]+$'
all:
command: |
@@ -445,7 +452,7 @@ software_available:
&& rm -rf /tmp/y \
laravel:
check: laravel --version | grep -E '(Installer|version)\s*[.0-9]+'
disabled: [5.2, 5.3]
disabled: [5.2, 5.3, 8.0]
5.4:
pre: |
git clone https://github.com/laravel/installer /usr/local/src/laravel-installer \
@@ -526,7 +533,7 @@ software_available:
&& cd / \
&& rm -rf /usr/local/src/mysqldump-secure \
phalcon:
disabled: [5.2, 7.3, 7.4]
disabled: [5.2, 7.3, 7.4, 8.0]
check: phalcon commands | grep -E '[.0-9]+'
5.3:
pre: |
@@ -578,7 +585,7 @@ software_available:
curl -sS -L https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf 2>/dev/null \
&& chmod +x /usr/local/bin/phpcbf \
php-cs-fixer:
disabled: [5.2, 7.4]
disabled: [5.2, 7.4, 8.0]
check: php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+'
5.3:
command: |
@@ -597,7 +604,7 @@ software_available:
curl -sS -L https://cs.symfony.com/download/php-cs-fixer-v2.phar > /usr/local/bin/php-cs-fixer 2>/dev/null \
&& chmod +x /usr/local/bin/php-cs-fixer \
phpunit:
disabled: [5.2]
disabled: [5.2, 8.0]
check: phpunit --version | grep -iE '^PHPUnit\s[.0-9]+'
5.3:
command: |
@@ -624,7 +631,7 @@ software_available:
curl -qL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit 2>/dev/null \
&& chmod +x /usr/local/bin/phpunit \
photon:
disabled: [5.2, 5.3, 5.4]
disabled: [5.2, 5.3, 5.4, 8.0]
check: photon --version | grep -E 'Installer [.0-9]+'
all:
command: |
@@ -827,7 +834,7 @@ extensions_enabled:
# command: [required] Custom command to install and enable a module
extensions_available:
amqp:
disabled: [7.3, 7.4]
disabled: [7.3, 7.4, 8.0]
5.2:
run_dep: [librabbitmq1]
type: pecl
@@ -850,7 +857,7 @@ extensions_available:
build_dep: [librabbitmq-dev]
run_dep: [librabbitmq4]
apcu:
disabled: [5.2, 7.4]
disabled: [5.2, 7.4, 8.0]
5.3:
type: pecl
version: 4.0.11
@@ -869,7 +876,7 @@ extensions_available:
all:
type: builtin
blackfire:
disabled: [5.2, 5.3, 5.4, 5.5, 7.4]
disabled: [5.2, 5.3, 5.4, 5.5, 7.4, 8.0]
all:
type: custom
command: |
@@ -919,7 +926,7 @@ extensions_available:
build_dep: [libffi-dev]
run_dep: [libffi6]
fileinfo:
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
5.2:
type: pecl
build_dep: [libmagic-dev]
@@ -928,7 +935,7 @@ extensions_available:
filter:
already_avail: "{{ php_all_versions }}" # Available by default
ftp:
already_avail: [5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
already_avail: [5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
all:
type: builtin
configure: --with-openssl-dir
@@ -982,6 +989,9 @@ extensions_available:
7.4:
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
8.0:
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
all:
type: builtin
pre: ln -s /usr/lib/x86_64-linux-gnu/libXpm.* /usr/lib/
@@ -1002,13 +1012,14 @@ extensions_available:
iconv:
already_avail: "{{ php_all_versions }}"
igbinary:
disabled: [8.0]
5.2:
type: pecl
version: 2.0.7
all:
type: pecl
imagick:
disabled: [5.2, 7.4]
disabled: [5.2, 7.4, 8.0]
5.3:
type: pecl
version: 3.3.0
@@ -1024,8 +1035,7 @@ extensions_available:
build_dep: [libmagickwand-dev]
run_dep: [libmagickwand-6.q16-3]
imap:
disabled: [7.4] # TODO: re-enable. currently fails with: configure: error: OpenSSL libraries not found.
disabled: [7.4, 8.0] # TODO: re-enable. currently fails with: configure: error: OpenSSL libraries not found.
all:
type: builtin
pre: ln -s /usr/lib/x86_64-linux-gnu/libkrb5* /usr/lib/
@@ -1055,7 +1065,7 @@ extensions_available:
build_dep: [libicu-dev]
run_dep: [libicu57]
ioncube:
disabled: [7.3, 7.4]
disabled: [7.3, 7.4, 8.0]
all:
type: custom
command: |
@@ -1079,11 +1089,11 @@ extensions_available:
libxml:
already_avail: "{{ php_all_versions }}" # Available by default
mbstring:
already_avail: [5.2, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
already_avail: [5.2, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
all:
type: builtin
mcrypt:
disabled: [7.4]
disabled: [7.4, 8.0]
7.2:
type: pecl
version: 1.0.1
@@ -1095,7 +1105,7 @@ extensions_available:
run_dep: [libmcrypt4]
build_dep: [libmcrypt-dev]
memcache:
disabled: [7.3, 7.4]
disabled: [7.3, 7.4, 8.0]
7.0:
type: git
git_url: https://github.com/websupport-sk/pecl-memcache
@@ -1132,13 +1142,18 @@ extensions_available:
git_url: https://github.com/php-memcached-dev/php-memcached
git_ref: master
command: phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install
8.0:
type: git
git_url: https://github.com/php-memcached-dev/php-memcached
git_ref: master
command: phpize && ./configure --enable-memcached && make -j$(getconf _NPROCESSORS_ONLN) && make install
all:
type: pecl
#version: 3.0.4 # TODO: check if this version works
build_dep: [zlib1g-dev, libmemcached-dev, libevent-dev]
run_dep: [libmemcachedutil2]
mongo:
disabled: [7.0, 7.1, 7.2, 7.3, 7.4] # Deprecated
disabled: [7.0, 7.1, 7.2, 7.3, 7.4, 8.0] # Deprecated
5.2:
type: pecl
command: yes | pecl install mongo-1.5.8
@@ -1154,11 +1169,20 @@ extensions_available:
5.4:
type: pecl
version: 1.2.11
8.0:
type: git
git_url: https://github.com/mongodb/mongo-php-driver
command: |
git submodule update --init \
&& phpize \
&& ./configure --enable-mongodb \
&& make all \
&& make install \
all:
type: pecl
build_dep: [libssl-dev, libsasl2-dev]
msgpack:
disabled: [7.4]
disabled: [7.4, 8.0]
5.2:
type: pecl
version: 0.5.7
@@ -1178,7 +1202,7 @@ extensions_available:
type: pecl
mysql:
already_avail: [5.2, 5.3]
disabled: [7.0, 7.1, 7.2, 7.3, 7.4] # Deprecated in newer versions
disabled: [7.0, 7.1, 7.2, 7.3, 7.4, 8.0] # Deprecated in newer versions
5.6:
type: builtin
run_dep: [libmariadbclient18]
@@ -1191,7 +1215,7 @@ extensions_available:
type: builtin
mysqlnd:
disabled: [5.2]
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
oci8:
disabled: [5.2]
all:
@@ -1251,7 +1275,7 @@ extensions_available:
configure: --with-zlib-dir=/usr
build_dep: [zlib1g-dev]
pdo_oci:
disabled: [5.2, 5.3, 5.4, 5.5, 5.6]
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 8.0]
7.4:
type: builtin
configure: --with-pdo-oci=instantclient,/usr/lib/oracle/18.3/client64/lib/,18.3
@@ -1286,7 +1310,7 @@ extensions_available:
pdo_sqlite:
already_avail: "{{ php_all_versions }}"
pdo_sqlsrv:
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 7.4]
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 7.4, 8.0]
7.3:
type: pecl
version: 5.5.0preview
@@ -1302,7 +1326,7 @@ extensions_available:
build_dep: [libpq-dev]
run_dep: [libpq5]
phalcon:
disabled: [5.2, 7.4]
disabled: [5.2, 7.4, 8.0]
5.3:
type: git
git_url: https://github.com/phalcon/cphalcon
@@ -1339,7 +1363,7 @@ extensions_available:
git_ref: $(git for-each-ref --format='%(*creatordate:raw)%(creatordate:raw) %(refname)' refs/tags | sort -n | sed 's/^.*tags\///g' | grep -E '^v[.0-9]+$' | tail -1)
command: cd build && ./install
phar:
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
5.2:
type: pecl
build_dep: [libssl-dev]
@@ -1374,12 +1398,24 @@ extensions_available:
&& ./configure \
&& make -j$(getconf _NPROCESSORS_ONLN) \
&& make install \
8.0:
type: git
git_url: https://github.com/phpredis/phpredis
# This is a nasty work-around to fix current phpredis implementation for PHP 7.4
command: |
phpize \
&& sed -i'' 's/ZEND_ACC_CTOR | //g' redis.c \
&& sed -i'' 's/ZEND_ACC_DTOR | //g' redis.c \
&& sed -i'' 's/ZEND_ACC_CTOR | //g' redis_cluster.c \
&& ./configure \
&& make -j$(getconf _NPROCESSORS_ONLN) \
&& make install \
all:
type: pecl
reflection:
already_avail: [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
already_avail: [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
rdkafka:
disabled: [5.2]
disabled: [5.2, 8.0]
all:
type: pecl
build_dep: [librdkafka-dev]
@@ -1415,7 +1451,7 @@ extensions_available:
spl:
already_avail: "{{ php_all_versions }}"
sqlsrv:
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 7.4]
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 7.4, 8.0]
7.3:
type: pecl
version: 5.5.0preview
@@ -1426,7 +1462,7 @@ extensions_available:
build_dep: [unixodbc-dev]
run_dep: [unixodbc]
swoole:
disabled: [5.2]
disabled: [5.2, 8.0]
5.3:
type: pecl
version: 1.9.23
@@ -1529,6 +1565,10 @@ extensions_available:
type: git
git_url: https://github.com/php/pecl-php-uploadprogress
configure: --enable-uploadprogress
8.0:
type: git
git_url: https://github.com/php/pecl-php-uploadprogress
configure: --enable-uploadprogress
all:
type: pecl
wddx:
@@ -1537,7 +1577,7 @@ extensions_available:
configure: --with-libxml-dir=/usr
build_dep: [libxml2-dev]
xdebug:
disabled: [7.4]
disabled: [7.4, 8.0]
5.2:
type: pecl
version: 2.2.7

View File

@@ -9,3 +9,4 @@ 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
php-7.4 php_version=7.4 ansible_connection=local
php-8.0 php_version=8.0 ansible_connection=local

View File

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