From 4fcb55297d14f31fc677af028289776e7947d6cf Mon Sep 17 00:00:00 2001 From: Peter Giles <8978655+petertgiles@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:30:13 -0400 Subject: [PATCH] [Feature] Bump PHP CLI memory limit (#11765) * local env change * configure post_deploy --- infrastructure/bin/post_deployment.sh | 7 +++++++ infrastructure/webserver.Dockerfile | 2 ++ 2 files changed, 9 insertions(+) diff --git a/infrastructure/bin/post_deployment.sh b/infrastructure/bin/post_deployment.sh index 570680a1290..c02da13a2fd 100755 --- a/infrastructure/bin/post_deployment.sh +++ b/infrastructure/bin/post_deployment.sh @@ -27,6 +27,13 @@ fi # First block is the header BLOCKS="{ \"type\": \"header\", \"text\": { \"type\": \"plain_text\", \"text\": \"Post-deployment script was run\" } }" +# Configure PHP CLI +if echo 'memory_limit=256M' >> /usr/local/etc/php/conf.d/php.ini ; then + add_section_block ":white_check_mark: Configure PHP CLI *successful*." +else + add_section_block ":X: Configure PHP CLI *failed*. $MENTION" +fi + # Install packages from repository if apt-get update && apt-get install --yes --no-install-recommends supervisor cron postgresql-client; then add_section_block ":white_check_mark: Install packages from repository *successful*." diff --git a/infrastructure/webserver.Dockerfile b/infrastructure/webserver.Dockerfile index 254d142a857..6d277de15c8 100644 --- a/infrastructure/webserver.Dockerfile +++ b/infrastructure/webserver.Dockerfile @@ -3,6 +3,8 @@ # All images: https://mcr.microsoft.com/v2/appsvc/php/tags/list FROM mcr.microsoft.com/appsvc/php:8.2-fpm-xdebug_20230908.3.tuxprod +RUN echo 'memory_limit=256M' >> /usr/local/etc/php/conf.d/php.ini + RUN apt-get update \ && apt-get install --yes --no-install-recommends supervisor cron postgresql-client \ && apt-get --yes autoremove \