It appears that Amazon Linux 2 v5.0 image (Amazon Linux 2 x86_64 standard:5.0
runtime available to CodeBuild) no longer contains Amazon Linux Extras, which makes a lot of documentation and answers about installing Chromium or Chrome obsolete.
I was looking to install prerequisites for Cypress, including a browser since AL2 no longer comes with any.
yum
would fail with an error like this:
$ yum install chromium
No match for argument: chromium
Error: Unable to find a match: chromium
Same thing happened with gtk2-devel
and GConf2
we used with the previous versions of AL2.
I found a solution for Amazon Linux 2023 (AL2023) which worked for AL2 v5.0 image as well. Note it installs Chrome and not Chromium:
Additionally, here is the list of dependencies I installed for Cypress before this. It does not match the exact list from Cypress AL2023 documentation so it's possible some things can be removed:
(AL2v5 logs indicate that
xorg-x11-server-Xvfb
,nss
andalsa-lib
are present in the image already so they most likely can be skipped)