Compare commits

..

11 commits

Author SHA1 Message Date
heluecht 5b9b6689ab Merge pull request 'Fix PHP-CS' (#17) from nupplaPhil/friendica-docker-ci:fixups into stable
Reviewed-on: friendica/friendica-docker-ci#17
2024-03-16 08:41:27 +01:00
Philipp Holzer 5e6d56ea8d
Fix PHP-CS 2024-03-16 00:17:29 +01:00
Philipp Holzer 88a02fa2cf Merge pull request 'Add PHP 8.3' (#15) from toddy/friendica-docker-ci:stable into stable
Reviewed-on: friendica/friendica-docker-ci#15
2024-03-15 22:45:02 +01:00
Hypolite Petovan b018eaa33f Merge pull request 'Use updated PHP-CS-Fixer in standard location' (#16) from toddy/friendica-docker-ci:php-cs-fixer into stable
Reviewed-on: friendica/friendica-docker-ci#16
2024-01-15 15:38:36 +01:00
Tobias Quathamer aa8725eb58 Update script according to recommendations from
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#using-php-cs-fixer-on-ci
2024-01-15 15:07:49 +01:00
Tobias Quathamer 733743acca Use updated PHP-CS-Fixer in standard location 2024-01-15 14:13:44 +01:00
Tobias Quathamer 8691cb9be3 Add PHP 8.3 2024-01-02 16:03:00 +01:00
Hypolite Petovan 6c94709d77 Merge pull request 'Enable intl' (#14) from nupplaPhil/friendica-docker-ci:bug/intl into stable
Reviewed-on: friendica/friendica-docker-ci#14
2023-10-15 22:53:20 +02:00
Philipp Holzer 1bf9f63ee8
Enable intl 2023-10-15 21:25:25 +02:00
Hypolite Petovan a2585689f4 Merge pull request 'IntlChar module added' (#13) from heluecht/friendica-docker-ci:intl into stable
Reviewed-on: friendica/friendica-docker-ci#13
2023-10-12 13:33:35 +02:00
Michael 774761ca34 IntlChar module added 2023-10-12 04:19:41 +00:00
9 changed files with 60 additions and 13 deletions

View file

@ -1,4 +1,4 @@
FROM php:7.4
FROM php:8.0
RUN apt-get update -q && \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y \

View file

@ -2,10 +2,10 @@
#
# Checks the PHP CS syntax
#
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php_cs(\\.dist)?|composer\\.lock)$"; then
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then
EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}");
else
EXTRA_ARGS='';
fi
./bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --diff --diff-format=udiff --dry-run --using-cache=no ${EXTRA_ARGS}
./bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --diff --dry-run --stop-on-violation --using-cache=no ${EXTRA_ARGS}

View file

@ -10,12 +10,12 @@ RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -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-redis php7.3-intl 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; \
apt-get autoremove -y; apt-get autoclean; apt-get clean; \
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 phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv pcntl openssl intl
RUN set -ex; \
curl -O -L https://phar.phpunit.de/phpunit-9.phar; \

View file

@ -10,12 +10,12 @@ RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y php7.4-gd git curl openssl \
php7.4-cli php7.4-curl php7.4-mysql wget make \
php7.4-redis php7.4-memcached php7.4-memcache php7.4-json \
php7.4-redis php7.4-intl php7.4-memcached php7.4-memcache php7.4-json \
php7.4-apcu php7.4-xdebug php7.4-xml php7.4-zip php7.4-dev php7.4-mbstring; \
apt-get autoremove -y; apt-get autoclean; apt-get clean; \
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 phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype json iconv pcntl openssl intl
RUN set -ex; \
curl -O -L https://phar.phpunit.de/phpunit-9.phar; \

View file

@ -10,12 +10,12 @@ RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y php8.0-gd git curl openssl \
php8.0-cli php8.0-curl php8.0-mysql wget make \
php8.0-redis php8.0-memcached php8.0-memcache \
php8.0-redis php8.0-intl php8.0-memcached php8.0-memcache \
php8.0-apcu php8.0-xdebug php8.0-xml php8.0-zip php8.0-dev php8.0-mbstring; \
apt-get autoremove -y; apt-get autoclean; apt-get clean; \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv intl
RUN set -ex; \
curl -O -L https://phar.phpunit.de/phpunit-9.phar; \

View file

@ -10,12 +10,12 @@ RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y php8.1-gd git curl openssl \
php8.1-cli php8.1-curl php8.1-mysql wget make \
php8.1-redis php8.1-memcached php8.1-memcache \
php8.1-redis php8.1-intl php8.1-memcached php8.1-memcache \
php8.1-apcu php8.1-xdebug php8.1-xml php8.1-zip php8.1-dev php8.1-mbstring; \
apt-get autoremove -y; apt-get autoclean; apt-get clean; \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv intl
RUN set -ex; \
curl -O -L https://phar.phpunit.de/phpunit-9.phar; \

View file

@ -10,12 +10,12 @@ RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y php8.2-gd git curl openssl \
php8.2-cli php8.2-curl php8.2-mysql wget make \
php8.2-redis php8.2-memcached php8.2-memcache \
php8.2-redis php8.2-intl php8.2-memcached php8.2-memcache \
php8.2-apcu php8.2-xdebug php8.2-xml php8.2-zip php8.2-dev php8.2-mbstring; \
apt-get autoremove -y; apt-get autoclean; apt-get clean; \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv intl
RUN set -ex; \
curl -O -L https://phar.phpunit.de/phpunit-9.phar; \

30
php8.3/Dockerfile Normal file
View file

@ -0,0 +1,30 @@
FROM debian:bookworm
# install the PHP extensions we need
# see https://friendi.ca/resources/requirements/
RUN set -ex; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y wget gnupg2 apt-transport-https lsb-release ca-certificates mariadb-client; \
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; \
DEBIAN_FRONTEND=noninteractive apt-get install -q -y php8.3-gd git curl openssl \
php8.3-cli php8.3-curl php8.3-mysql wget make \
php8.3-redis php8.3-intl php8.3-memcached php8.3-memcache \
php8.3-apcu php8.3-xdebug php8.3-xml php8.3-zip php8.3-dev php8.3-mbstring; \
apt-get autoremove -y; apt-get autoclean; apt-get clean; \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*;
RUN phpenmod curl pdo pdo_mysql xml gd zip opcache mbstring posix ctype iconv intl
RUN set -ex; \
curl -O -L https://phar.phpunit.de/phpunit-9.phar; \
chmod +x phpunit-9.phar; \
mv phpunit-9.phar /usr/local/bin/phpunit;
RUN set -ex; \
curl -O -L https://getcomposer.org/download/1.10.15/composer.phar; \
chmod +x composer.phar; \
mv composer.phar /usr/local/bin/composer;
RUN phpdismod xdebug
ADD php.ini /etc/php/8.3/cli/conf.d/friendica.ini

17
php8.3/php.ini Normal file
View file

@ -0,0 +1,17 @@
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
apc.enabled=1
apc.enable_cli=1
error_reporting=-1
log_errors_max_len=0
zend.assertions=1
assert.exception=1
xdebug.show_exception_trace=0