Skip to content

Commit

Permalink
[Feature] Bump PHP CLI memory limit (#11765)
Browse files Browse the repository at this point in the history
* local env change

* configure post_deploy
  • Loading branch information
petertgiles authored Oct 16, 2024
1 parent 1d9e2f0 commit 4fcb552
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infrastructure/bin/post_deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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*."
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/webserver.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4fcb552

Please sign in to comment.