Skip to content

Commit

Permalink
feat: add continuous-integration-php8.3 image
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Apr 2, 2024
1 parent 695565c commit 7e05ddd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions php8.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions php8.3/nextcloud.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7e05ddd

Please sign in to comment.