From f9b0ac80194c0f1871179d0fe27cfa8386959dee Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 2 Apr 2024 15:46:07 +0200 Subject: [PATCH] feat: Add litmus test image with current PHP version (8.3) Signed-off-by: Ferdinand Thiessen --- integration-php8.3/Dockerfile | 7 +++++++ litmus-php8.3/Dockerfile | 8 ++++++++ php8.3/Dockerfile | 22 ++++++++++++++++++++++ php8.3/nextcloud.ini | 10 ++++++++++ 4 files changed, 47 insertions(+) create mode 100644 integration-php8.3/Dockerfile create mode 100644 litmus-php8.3/Dockerfile create mode 100644 php8.3/Dockerfile create mode 100644 php8.3/nextcloud.ini diff --git a/integration-php8.3/Dockerfile b/integration-php8.3/Dockerfile new file mode 100644 index 00000000..5620115c --- /dev/null +++ b/integration-php8.3/Dockerfile @@ -0,0 +1,7 @@ +FROM ghcr.io/nextcloud/continuous-integration-php8.3:latest + +RUN mkdir /tmp/server && \ + cd /tmp/server && git clone --recursive https://github.com/nextcloud/server.git && \ + cd /tmp/server/server/build/integration && composer install && \ + cd /tmp/server/server/tests/acceptance && composer install && \ + rm -rf /tmp/server diff --git a/litmus-php8.3/Dockerfile b/litmus-php8.3/Dockerfile new file mode 100644 index 00000000..5f1a035b --- /dev/null +++ b/litmus-php8.3/Dockerfile @@ -0,0 +1,8 @@ +FROM ghcr.io/nextcloud/continuous-integration-php8.3:latest + +RUN apt-get update && apt-get install -y gcc coreutils make python && \ + mkdir -p /tmp/litmus && \ + wget -O /tmp/litmus/litmus-0.13.tar.gz http://www.webdav.org/neon/litmus/litmus-0.13.tar.gz && \ + cd /tmp/litmus && tar -xzf litmus-0.13.tar.gz && \ + cd /tmp/litmus/litmus-0.13 && ./configure && make && rm -f /tmp/litmus-0.13.tar.gz && \ + apt-get clean diff --git a/php8.3/Dockerfile b/php8.3/Dockerfile new file mode 100644 index 00000000..97a08535 --- /dev/null +++ b/php8.3/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:buster +RUN apt-get update && apt-get install -y wget gnupg2 libzip4 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 php8.3-intl php8.3-gd git curl \ + php8.3-cli php8.3-curl php8.3-pgsql php8.3-ldap \ + php8.3-sqlite php8.3-mysql php8.3-zip php8.3-xml \ + php8.3-redis php8.3-imagick php8.3-xdebug php8.3-apcu \ + php8.3-mbstring make libmagickcore-6.q16-2-extra && \ + apt-get autoremove -y && apt-get autoclean && apt-get clean && \ + rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* + +RUN phpenmod zip intl gd systemd +RUN curl -O -L https://phar.phpunit.de/phpunit-9.5.28.phar \ + && chmod +x phpunit-9.5.28.phar \ + && mv phpunit-9.5.28.phar /usr/local/bin/phpunit +RUN curl -O -L https://getcomposer.org/download/2.5.1/composer.phar \ + && chmod +x composer.phar \ + && mv composer.phar /usr/local/bin/composer + +RUN phpdismod xdebug +ADD nextcloud.ini /etc/php/8.3/cli/conf.d/nextcloud.ini diff --git a/php8.3/nextcloud.ini b/php8.3/nextcloud.ini new file mode 100644 index 00000000..a7980f31 --- /dev/null +++ b/php8.3/nextcloud.ini @@ -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