Skip to content

Commit

Permalink
Jinja2 is not maintained and broken
Browse files Browse the repository at this point in the history
migrate to jinjanator
  • Loading branch information
Wolvverine committed May 24, 2024
1 parent 6eaecdb commit b0a13f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile_nginx-72
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN set -ex; \
tzdata \
; \
pip3 install \
j2cli \
jinjanator \
; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile_nginx-74
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ RUN set -ex; \
tzdata \
; \
pip3 install \
j2cli \
jinja2-getenv-extension \
jinjanator \
; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile_nginx-82
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ RUN set -ex; \
tzdata \
; \
pip3 install --break-system-packages \
j2cli \
jinja2-getenv-extension \
jinjanator \
; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
Expand Down
6 changes: 3 additions & 3 deletions docker-entrypoint.d/10phpfpm
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
set -e

echo 'Configuring PHP FPM...'
j2 /etc/php-fpm.d/nginx.conf.j2 -o /usr/local/etc/php-fpm.d/zzz-nginx.conf
j2 /etc/php-fpm.d/custom.conf.j2 -o /usr/local/etc/php-fpm.d/zzz-tuning.conf
jinjanate /etc/php-fpm.d/nginx.conf.j2 -o /usr/local/etc/php-fpm.d/zzz-nginx.conf
jinjanate /etc/php-fpm.d/custom.conf.j2 -o /usr/local/etc/php-fpm.d/zzz-tuning.conf
# to lowercase
PHP_XDEBUG=$(echo "${PHP_XDEBUG}" | tr '[:upper:]' '[:lower:]')
if [ "${PHP_XDEBUG}" = "yes" ]; then
j2 /etc/php-fpm.d/xdebug.conf.j2 -o /usr/local/etc/php-fpm.d/xdebug-config.conf
jinjanate /etc/php-fpm.d/xdebug.conf.j2 -o /usr/local/etc/php-fpm.d/xdebug-config.conf
fi

0 comments on commit b0a13f4

Please sign in to comment.