-
Notifications
You must be signed in to change notification settings - Fork 331
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
fix: respect PHP_MEMORY_LIMIT for composer #246
base: master
Are you sure you want to change the base?
Conversation
After setting PHP_MEMORY_LIMIT to `-1` composer still exited with an OOM error. Setting the parameter directly through php fixed the issue
Can one of the admins verify this patch? |
5 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
any chance this is getting merged? I'm currently monkey-patching the |
Can one of the admins verify this patch? |
This is still an open issue for me? can anyone verify this patch? |
any chance this will ever get merged? |
[test-all] |
@PixelJonas Thanks for the PR!. Any documentation about this change? I am not familiar with php ;) |
@PixelJonas Can you please include it into the other versions, 7.4? |
I added the snippet to 7.3 and 7.4 as well. TBH my PHP knowledge is not that extensive and this PR was from a small engagement where needed to install a contao-cms based system in OpenShift V3. Digging through the code This is not respected when directly using the As I don't find any documentation about Lastly, looking at the test-bed I do see errors all over the place. Is the test-bed in a "known good state", so these errors are coming from my change? |
[test-all] |
@remicollet Does it make sense for you this PR? @PixelJonas Can you please add this change also for (https://github.com/sclorg/s2i-php-container/blob/master/8.0/s2i/bin/assemble) [test-all] |
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.
Please add this also into 8.0 version.
Signed-off-by: PixelJonas <[email protected]>
I added the patch to 8.0 |
I can understand the need to set memory limit for cli command (e.g. composer) It could be better to use 2 configuration options
BTW, for now |
@PixelJonas Can you please fix it as @remicollet propose two solutions? |
That heavily depends on the timeframe you are expecting this to be done. Right now I don't see the bandwidth to do that, as this looks like something which needs to be tested and I don't have a scenario this is actually being used in (this PR is from 2019). |
Pull Request validationFailed🔴 Review - Missing review from a member (2 required) Success🟢 CI - All checks have passed |
After setting PHP_MEMORY_LIMIT to
-1
composer still exited with an OOM error.Setting the parameter directly through php fixed the issue