lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment
MIT License
5.83k stars 431 forks source link

java8.al2 libcurl package is missing #319

Closed r1m closed 3 years ago

r1m commented 3 years ago

I'm running a java8 lambda that uses some native lib through JNI. It works on AWS, but using lambci:java8.al2 it fails because libcurl is missing. libcurl can be found in amazonlinux2 and must be present in AWS lambda env.

docker run -it --entrypoint sh lambci/lambda:java8 -c 'ls /lib64' shows no libcurl so files

mhart commented 3 years ago

To clarify, are you running java8.al2 or java8 on AWS? They're different runtimes

r1m commented 3 years ago

Right, I was thinking it was only a change in your base image. So I tried both. But java8 is my runtime on AWS.

mhart commented 3 years ago

Well on java8 libcurl is installed. It's in /usr/lib64

mhart commented 3 years ago

It's not on java8.al2 – but that's because it's not on the java8.al2 runtime on AWS either. You can use something like https://github.com/lambci/yumda to install it in a layer

r1m commented 3 years ago

Ok, I was confused by some localstack configuration. Thanks for your quick answer and clarification.