Skip to content

Composer fails - memory size fatal error #5

@Unclezz

Description

@Unclezz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions