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.11k stars 973 forks source link

Is there a recommended way for installing Chrome and Firefox on CodeBuild? #654

Closed trivikr closed 1 year ago

trivikr commented 1 year ago

The ubuntu/standard/5.0 used to install Chrome and Firefox by default. Dockerfile: https://github.com/aws/aws-codebuild-docker-images/blob/4e975ad93117a4eabb91971b1e59dab26ccd5687/ubuntu/standard/5.0/Dockerfile#L63-L80

Chrome and Firefox are no longer installed in ubuntu/standard/6.0 and later. Dockerfile: https://github.com/aws/aws-codebuild-docker-images/blob/master/ubuntu/standard/6.0/Dockerfile

These binaries were useful in running browser tests in the past, and folks who upgrade their CodeBuild versions without explicitly installing Chrome/Firefox binaries will get following errors:

08 06 2023 04:20:42.659:ERROR [launcher]: No binary for ChromeHeadless browser on your platform.
  Please, set "CHROME_BIN" env variable.
08 06 2023 04:20:42.675:ERROR [launcher]: Cannot start Firefox
    Can not find the binary firefox
    Please set env variable FIREFOX_BIN

is there a recommended way for installing Chrome and Firefox on Codebuild?

trivikr commented 1 year ago

Duplicate of: https://github.com/aws/aws-codebuild-docker-images/issues/562