-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added PHP_CLI_MEMORY_LIMIT envvar to configure php cli memory limit #322
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,9 +46,9 @@ COPY db-build.sh /bay | |
COPY db-dump-sanitized.sh /bay | ||
COPY mtk /bay/mtk | ||
|
||
# Change worker pool from dynamic to static. Change default value to 24. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are these lines being removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh just noticed these to clean up - no fpm process in the cli container so we dont need the worker config here at all. Just cruft. The same line still exists in the fpm image. |
||
RUN sed -i "s/pm = dynamic/pm = static/" /usr/local/etc/php-fpm.d/www.conf | ||
ENV PHP_FPM_PM_MAX_CHILDREN=24 | ||
# Provide a separate environment variable to configure the php cli memory limit. | ||
ENV PHP_CLI_MEMORY_LIMIT=1024M | ||
RUN sed -i 's/\${PHP_MEMORY_LIMIT:/\${PHP_CLI_MEMORY_LIMIT:/g' "$PHP_INI_DIR/conf.d/00-lagoon-php.ini.tpl" | ||
|
||
ARG TZ=Australia/Melbourne | ||
RUN apk add --no-cache tzdata \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to delete this?