Closed muzfuz closed 3 years ago
Yeah, base-2 is a lot smaller (because Amazon Linux 2 is also a lot smaller). If you have dependencies like that you'll need to install them yourself.
I'll make it clear in the README that that's just for the original Amazon Linux 1 based runtimes.
Done! Clarified in README
The problem
I noticed the following whilst using the
build-ruby2.7
image, but I suspect this involves all images that uselambci/lambda-base-2:build
.It appears that several builder dev dependencies are not included via the new base builders as
cairo-devel
is not included, and I happened to notice thatImageMagick-devel
is also not there, which means certain dependencies can't build as seen below:The Cause
If you look at the ruby2.5 image then you can see it pulls in the original
base
image which explicitly installs builder dependencies here..Looking at the ruby2.7 image it pulls in lambci/lambda-base-2:build.
It's not entirely clear to me yet what this file is doing, but it appears to not be including all the builder dependencies that are listed at the bottom of the readme.
I would be happy to try and fix this with a PR, but I've currently not had the time to fully dive in, so I thought I would open this issue to track it for now.