Code Monkey home page Code Monkey logo

ghostscript-lambda-layer's Introduction

Ghostscript for AWS Lambda as a Layer

Getting Started

Click on Layers and choose "Add a layer", and "Provide a layer version ARN" and enter the following ARN.

arn:aws:lambda:<YOUR REGION>:764866452798:layer:ghostscript:<VERSION>

Works with the following AWS Lambda runtimes which run on Amazon Linux 2:

  • nodejs16.x, nodejs14.x, nodejs12.x, nodejs10.x
  • python3.8
  • java11

Version Numbers

Ghostscript VERSION eu-west-3
v10.02.0 15 16
v10.0.0 13 14
v9.56.1 12 13
v9.55.0 9 10
v9.52.0 8 9
v9.50.0 6 7
v9.20.0 1 1

Where can I find the Ghostscript binary inside of Lambda after I attach the layer?

You can find it at /opt/bin/gs (/opt is where Lambda unpacks layers).

You can run /opt/bin/gs --version to make sure Ghostscript is up and running.

Update

  1. Change version number & git tag in the Dockerfile
  2. Run ./build.sh script which will produce ghostscript.zip file
  3. Change version number in the publish.sh
  4. Commit & Create a Pull Request
  5. After merging, a new layer version will be published by the CI automatically

License

MIT ยฉ Shelf

ghostscript-lambda-layer's People

Contributors

andreasgrimm avatar donvitom avatar knupman avatar pawel-jaszczyszyn avatar renovate-bot avatar ryancormack avatar urg avatar vladgolubev avatar vladholubiev avatar webjayant avatar yetithefoot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghostscript-lambda-layer's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

circleci
.circleci/config.yml
dockerfile
Dockerfile

  • Check this box to trigger a request for Renovate to run again on this repository

Self hosting

Is it possible for someone to self host this layer within their own account? I am concerned with using the arn and it being removed in the future.

Node 14 support

Thank you for your work.
Are you planning to release a version compatible with node 14?

Kind regards,
Cris

Please make sure that Ghostscript is installed in Lambda

Hi,
I am using ARN what you provided.
arn:aws:lambda:ap-south-1:764866452798:layer:ghostscript:1

But still giving the error below in lambda
"errorMessage": "Please make sure that Ghostscript is installed".

Please help me.

Node 20+?

Do these work with newer node? the versions listed in readme are quite old now.

Failed to build Ghostscript 10.02.1

I have updated the tag and version as follows.

ENV GS_TAG=gs10021
ENV GS_VERSION=10.02.1

Then, I get the following error in my terminal.

image

Could you please check it? Or release the new version.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>shelfio/renovate-config)

Missing supporting libraries

Firstly, thanks for hosting the layer - it worked like a charm. It would be much helpful if the **libgs.so.*9.5 are also made available in a /lib64 folder. The reason for the error is also the same, that the camelot library is trying to find libgs.so.9.52 but couldn't find it.

An easy replication of an error is as follows..

# Any one of the below sections of code should have a value
# sec: 1
from ctypes import *
cdll = LibraryLoader(CDLL)
libgs = cdll.LoadLibrary("libgs.so")    # or "/opt/lib64/libgs.so"
print("libgs should not be null -->", libgs)

#sec 2
import ctypes.util
libgs = ctypes.util.find_library("gs")
print("libgs should not be null -->", libgs)

Originally posted by @akshowhini in #4 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.