lambda-node-phantom | simple working example of running PhantomJS | Runtime Evironment library
kandi X-RAY | lambda-node-phantom Summary
kandi X-RAY | lambda-node-phantom Summary
I have been told that this no longer works! I no longer use AWS/Lambda so for now the best I can do is link to an [alternate solution] PRs are welcome to get this working again. A simple working example of running PhantomJS on AWS Lambda via NodeJS ---. This repository contains a complete, working example of running a simple PhantomJS script on AWS Lambda through a NodeJS child process. First, clone this repository (or download the zip). Next, [compress the contents of the folder] and upload the zip file to an AWS Lambda function. The PhantomJS binary is included in this repository, but if you would like to download it yourself you can get it from the [PhantomJS Bitbucket Page] download phantomjs-1.9.8-linux-x86_64.tar.bz2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lambda-node-phantom
lambda-node-phantom Key Features
lambda-node-phantom Examples and Code Snippets
Community Discussions
Trending Discussions on lambda-node-phantom
QUESTION
I found a 4 year old project that's supposed to install phantomjs on lambda, but either I'm doing something wrong, or things have changed since the repo was created and it no longer works. When I clone and deploy this repository, I get this error trying to run phantomjs:
...ANSWER
Answered 2019-Jul-01 at 19:52According to your log error, it looks like libfreetype.so.6 is missing from your lambda execution runtime.
You may need to create a custom lambda layer embedding this shared library. Afterwards, you may need to update your LD_LIBRARY_PATH so it also points to the shared library's directory. You may also alternately include it in your lambda deployment package.
According to AWS official doc:
To include libraries in a layer, place them in one of the folders supported by your runtime.
All – bin (PATH), lib (LD_LIBRARY_PATH)
Link here: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
Make sure you embed a libfreetype.so.6 compiled for Amazon linux (or Amazon linux 2).
Execution runtimes here: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Good luck !
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lambda-node-phantom
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page