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

Can't build docker #596

Closed
moezkorkmaz opened this issue Jul 23, 2021 · 7 comments
Closed

Can't build docker #596

moezkorkmaz opened this issue Jul 23, 2021 · 7 comments

Comments

@moezkorkmaz
Copy link

PHP version needed >=7.4
Actual PHP version in container 7.3

@christopheblin
Copy link

A little more details : changing the version from 7.3 to 7.4 is not enough to have the docker build succeed

#6 24.15 configure: error: unrecognized options: --with-jpeg-dir, --with-png-dir, --with-webp-dir, --with-freetype-dir

have a look to docker-library/php#912 to solve this

docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype

but then another error ...

#6 25.78 configure: error: unrecognized options: --with-libzip

have a look to laradock/laradock#2453 (comment)

docker-php-ext-configure zip

then, I remove composer.lock since it is not part of the git (it should work only with composer.json anyway)

COPY composer.json symfony.lock ./

But then it fails on composer install (I removed --no-suggest)

=> ERROR [sylius_php 10/20] RUN set -eux;  composer install --prefer-dist --no-autoloader --no-scripts --no-progress;  composer clear-ca  16.9s
------                                                                                                                                           
 > [sylius_php 10/20] RUN set -eux;     composer install --prefer-dist --no-autoloader --no-scripts --no-progress;      composer clear-cache:    
#15 0.329 + composer install --prefer-dist --no-autoloader --no-scripts --no-progress                                                            
#15 0.564 No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.                                                                                                                          
#15 0.565 Loading composer repositories with package information                                                                                 
#15 3.697 Updating dependencies
#15 16.70 Killed

I tried

# https://getcomposer.org/doc/03-cli.md#composer-memory-limit
ENV COMPOSER_MEMORY_LIMIT=-1

But the same error occurs -> I'm out of ideas ...

@christopheblin
Copy link

A bit more porgress thanks to https://stackoverflow.com/a/50770267/1545567

Increasing the Docker desktop RAM to 3Go now results in successfull build for sylius_php and sylius_nginx

I'll make a PR

@vasilvestre
Copy link
Contributor

vasilvestre commented Aug 13, 2021

Duplicate of #437, superseeded by #536 ?

@lchrusciel
Copy link
Member

Hey folks, can you test #605? If it will solve your issue, I can release a new version of Sylius-Standard

@vasilvestre
Copy link
Contributor

vasilvestre commented Sep 15, 2021

Hey folks, can you test #605? If it will solve your issue, I can release a new version of Sylius-Standard

2G of memory isn't enough, 3G is needed on master. PR here #610

Otherwise, it builds as intended. Good job!

@Fabiomad85
Copy link

I have the same issue. Any Help? thanks

@lchrusciel
Copy link
Member

Should be fixed already on master branch

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

5 participants