I'm getting an error when trying to update composer in Docker. There seems to be an issue with memory allocation. I've updated the memory in Docker Desktop to 16GB, so I think this is coming from the php/composer side of things.
🍣 trent docker-compose exec mediawiki composer update ➜ Workspace/mediawiki [master] > ComposerHookHandler::onPreUpdate Loading composer repositories with package information Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/ Updating dependencies (including require-dev) mmap() failed: [12] Cannot allocate memory Segmentation fault
That is using mediawiki/core docker-compose.yml and my machine is:
OS: macOS Big Sur
Machine: 2020 M1 MBP
Docker version: 3.5.2 (3.5.2.18)
The Apple M1 comes with an arm64 processor, not an Intel one.