lambci / yumda

Yum for AWS Lambda
MIT License
285 stars 21 forks source link

Add *more* Amazon Linux 1 packages #1

Open mhart opened 4 years ago

mhart commented 4 years ago

Get parity with Amazon Linux 2

diff <(docker run --rm lambci/yumda:1 bash -c "yum list available && yum list installed" | awk '{print $1}' | sed -e 's/.x86_64//' -e 's/.noarch//' | sort) <(docker run --rm lambci/yumda:2 bash -c "yum list available && yum list installed" | awk '{print $1}' | sed -e 's/.x86_64//' -e 's/.noarch//' | sort) | grep '>' | sed 's/>/- [ ]/'
asterikx commented 4 years ago

I would love to see libvips on Amazon Linux 1.

mhart commented 4 years ago

@asterikx unfortunately vips isn't available as an Amazon Linux yum package. I managed to find instructions to get it to build for Amazon Linux 2, but not for Amazon Linux 1 (which is much older)

asterikx commented 4 years ago

@mhart I found sharp-libvips, but the linux-x64 build is probably not compatible with Amazon Linux 1? I need to add vips to the Lambda Go runtime which is still at Amazon Linux 1 unfortunately ...

Dramex commented 3 years ago

@asterikx unfortunately vips isn't available as an Amazon Linux yum package. I managed to find instructions to get it to build for Amazon Linux 2, but not for Amazon Linux 1 (which is much older)

@mhart how so, can you help with the install instructions, I want to setup libvips --with-magik

mhart commented 3 years ago

@mhart how so, can you help with the install instructions, I want to setup libvips --with-magik

Can you explain your question a little more? You want to install it with yumda? On which Lambda runtime?

Dramex commented 3 years ago

On which Lambda runtime?

Node.js v12

mhart commented 3 years ago

@Dramex so vips is available already for Amazon Linux 2 runtimes:

https://github.com/lambci/yumda/blob/c8f5ed1a239a6c72fe0885d03892326620299b32/amazon-linux-2/packages.txt#L1107

To install:

mkdir vips-layer
docker run --rm -v "$PWD"/vips-layer:/lambda/opt lambci/yumda:2 \
  yum install -y vips