[dsfr] Squelette pour tests

This commit is contained in:
2023-11-05 10:12:59 +01:00
parent 74505da148
commit 76889148a1
36 changed files with 5395 additions and 1939 deletions

33
docker/php-fpm/Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM php:8.2-fpm-alpine
### Install XDEBUG extension.
RUN apk add --update linux-headers
RUN apk add --no-cache $PHPIZE_DEPS \
&& pecl install -f xdebug \
&& docker-php-ext-enable xdebug \
&& apk del $PHPIZE_DEPS
### Install INTL extension.
RUN apk add --no-cache icu-dev icu-data-full && \
docker-php-ext-install intl
RUN docker-php-ext-install sysvsem
### Install composer / composer-normalize.
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
ADD https://github.com/ergebnis/composer-normalize/releases/download/2.28.3/composer-normalize.phar /usr/local/bin/composer-normalize
RUN chmod 755 /usr/local/bin/composer-normalize
### Install tools
RUN apk add --no-cache \
yamllint \
libxml2-utils \
make \
git
WORKDIR /var/www
CMD ["php-fpm"]
EXPOSE 9000

19
docker/php-fpm/php.ini Normal file
View File

@@ -0,0 +1,19 @@
[PHP]
date.timezone=Europe/Paris
;log_errors=On
;error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT
;display_errors=Off
max_execution_time=30
memory_limit=-1
upload_max_filesize = 100M
post_max_size = 100M
[opcache]
; http://symfony.com/doc/current/performance.html
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
realpath_cache_size=4096K
realpath_cache_ttl=600
xdebug.mode=develop,coverage