Closed abbluiz closed 2 years ago
+1
Any updates on this? Driving me crazy
This is funny!, runtimes for 7.3 and 7.4 are depricated and the only supported version is 8 which is locked to 8.0.0! if you are not planning to release 8.1 at least include minor releases for 8. right now 8.0.16 is available. we have lot of trouble with locking the release to 8.0.0 because a big bunch of packages need at least 8.0.2
I have stopped using PHP runtimes altogether. Now I build things inside docker. However I am still not closing this issue, since I still think AWS should add more versions.
Your Composer dependencies require a PHP version ">= 8.0.2". You are running 8.0.0.
Would appreciate a more up to date version of PHP 8.0 available....
I've made a PR to (hopefully) help fix this.
Not sure who can take a look at it. @leoherran-aws?
+1
Please can this be addressed?
@abbluiz any update on this?
@AshrafAkon I stopped using the PHP runtime. During CodeBuild, I build a docker image that has the latest PHP version, though. And some steps that I were doing outside the docker image build (in the CodeBuild machine/runtime itself), I included them in the Dockerfile.
@abbluiz I am also thinking about doing something same. My main issue was composer. Some package uses minimum php 8.0.2. So I am thinking about using the latest composer image and run "composer install" from there.
I stopped using the AWS Codebuild image and switched to using the Bitnami Laravel Image.
The only other change I had to make to the build process, was to manually install the AWS Cli.
@edward-aslin care sharing a tutorial?
cause am getting this error currently:
symfony/css-selector v6.0.3 requires php >=8.0.2 -> your php version (8.0.0) does not satisfy that requirement.
Although, for now, I do - composer install --ignore-platform-reqs
which works
@Tarhex
It will vary depending on your VPC setup etc. But essentially
1) Rather than using the Codebuild Image, switch it to the Bitnami Image. You do this in environment settings, you may have to select 'override current image' button, choose custom image and specify 'bitnami/laravel'
2) Update your build file to install the AWS Cli on the Bitnami image
build:
commands:
- echo Build started on `date`
- echo Update package list
- sudo apt-get update
- echo Install AWSCLI
- sudo apt-get -y install awscli
+1 for this please, lack of PHP 8.1 support is an absolute blocker for us migrating to CodeBuild from Bamboo.
+1
We have updated the PHP 8.0 minor versions in #535. Going to leave open for PHP 8.1 support.
There are no available PHP runtimes for PHP 8.0.2 (PHP is 8.0.14 at the time of creation of this issue). There is also no available runtimes for PHP 8.1.