Skip to content
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

Composer fails - memory size fatal error #5

Open
Unclezz opened this issue May 7, 2020 · 0 comments
Open

Composer fails - memory size fatal error #5

Unclezz opened this issue May 7, 2020 · 0 comments

Comments

@Unclezz
Copy link

Unclezz commented May 7, 2020

Hello,

while trying ot use this repo I experienced the following error when composer is called:

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

In order to fix this I slightly changed the Dockerfile including the following commented line:

# install Drupal Commerce 2.x https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/installation
RUN  cd /var \
     && rm -rf /var/www \
     && export COMPOSER_MEMORY_LIMIT=-1 \ ## this is added line
     && composer create-project drupalcommerce/project-base www --stability dev \
     && ln -s /var/www/web /var/www/html \
     && chown -R www-data:www-data /var/www/web

Happening on a Debian Stable VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant