aws / aws-codebuild-docker-images

Official AWS CodeBuild repository for managed Docker images http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html
Other
1.12k stars 977 forks source link

Why is PHP locked at 8.0.0? Please add more minor versions #506

Closed abbluiz closed 2 years ago

abbluiz commented 2 years ago

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.

ghost commented 2 years ago

+1

MitchellBarker commented 2 years ago

Any updates on this? Driving me crazy

mohammad-pouri commented 2 years ago

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

abbluiz commented 2 years ago

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.

AdamWills commented 2 years ago
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....

AdamWills commented 2 years ago

I've made a PR to (hopefully) help fix this.

Not sure who can take a look at it. @leoherran-aws?

jvdven commented 2 years ago

+1

MajorasJack commented 2 years ago

Please can this be addressed?

AshrafAkon commented 2 years ago

@abbluiz any update on this?

abbluiz commented 2 years ago

@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.

AshrafAkon commented 2 years ago

@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.

edward-aslin commented 2 years ago

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.

Tarhex commented 2 years ago

@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

edward-aslin commented 2 years ago

@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
stuartford commented 2 years ago

+1 for this please, lack of PHP 8.1 support is an absolute blocker for us migrating to CodeBuild from Bamboo.

coreykck commented 2 years ago

+1

Dylan-AWS commented 2 years ago

We have updated the PHP 8.0 minor versions in #535. Going to leave open for PHP 8.1 support.

subinataws commented 2 years ago

Addressed in https://github.com/aws/aws-codebuild-docker-images/releases/tag/22.06.30