aspendigital / docker-octobercms

Dockerized October CMS: PHP, Composer, October core and dependencies
MIT License
150 stars 55 forks source link

Trying to user PHP 7.4-apache Dockerfile : Composer Error #42

Closed boyer-nicolas closed 4 years ago

boyer-nicolas commented 4 years ago

Hi, I'm trying to use the PHP 7.4-apache Dockerfile and I'm getting the following errors :

[RuntimeException] No composer.json present in the current directory, this may be the cause of the following exception.

[InvalidArgumentException]
Package hirak/prestissimo has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

Basically it fails at this command :

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
/usr/local/bin/composer global require hirak/prestissimo

I'm trying to build this with the whole PHP 7.4-apache folder.

Any ideas ?

LukeTowers commented 4 years ago

@jimcottrell @petehalverson this is because of Composer 2.0 being the version of composer pulled from getcomposer.org, and prestissimo is no longer helpful. I would just get rid of prestissimo. Also note that you may need to make some other adjustments so that these images work with the 1.1 branch of October, and that Composer 2.0 will only work with build 1.1.1+

boyer-nicolas commented 4 years ago

@LukeTowers Thanks for your answer. So basically I'm not using the latest october version even tho I'm trying to build the latest available on this repo ?

LukeTowers commented 4 years ago

@boyer-nicolas if you're using the develop image then that's the latest version of October. The 1.1 comment I mentioned is more for @aspendigital's reference as it will probably change some things about how they structure their automated builds of the images.

boyer-nicolas commented 4 years ago

Alright, I thought it was the other way around ! I'll try this. Thanks !