You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried it with the amazonlinux image used in the README and it worked fine, so I suspect that the ENTRYPOINT in the README is correct.
Then, I changed the base image to ruby:2.7-slim, I got the following error when running the Lambda function:
{
"errorMessage": "RequestId: xxxxxxxx-xxxx-0000-xxxx-xxxxxxxxxxxx Error: fork/exec /usr/local/bin/aws_lambda_ric: no such file or directory",
"errorType": "Runtime.InvalidEntrypoint"
}
In this case, changing the ENTRYPOINT to /usr/local/bundle/bin/aws_lambda_ric resolved the error. I think this issue is talking about something similar to the error and fix above. The installation destination changes depending on the base image, and it is necessary to match the ENTRYPOINT to it.
Uh oh!
There was an error while loading. Please reload this page.
While trying to build a valid custom ruby image i found out that the ENTRYPOINT of the Dockerfile example in the readme is not valid.
In my case the
gem install aws_lambda_ric
put the the gem intousr/local/bundle/bin
and not inusr/local/bin
So to make it work i had to change the entrypoint from
to
Can i open a PR on the README with the above change proposals ?
Maybe someone can find that useful.
The text was updated successfully, but these errors were encountered: