Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghostscript version 10 #16

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

ryancormack
Copy link
Contributor

@ryancormack ryancormack commented Dec 5, 2022

I've built this on my Apple Silicon MBP using docker buildx build --platform linux/amd64 -t gs-lambda-layer .

Deployed and tested to a Node 16 Lambda on x86 (it doesn't seem to run on ARM Lambda runtimes)

Testing output:

START RequestId: 62724ed4-8438-48bb-8e7f-cfa358d54df5 Version: $LATEST
2022-12-05T11:46:25.277Z	62724ed4-8438-48bb-8e7f-cfa358d54df5	INFO	[
  null,
  'GPL Ghostscript 10.0.0 (2022-09-21)\n' +
    'Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.\n' +
    'This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:\n' +
    'see the file COPYING for details.\n' +
    'Error: /undefinedfilename in (version)\n' +
    'Operand stack:\n' +
    '\n' +
    'Execution stack:\n' +
    '   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push\n' +
    'Dictionary stack:\n' +
    '   --dict:761/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--\n' +
    'Current allocation mode is local\n' +
    'Last OS error: No such file or directory\n',
  'GPL Ghostscript 10.00.0: Unrecoverable error, exit code 1\n'
]
2022-12-05T11:46:25.277Z	62724ed4-8438-48bb-8e7f-cfa358d54df5	INFO	GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Error: /undefinedfilename in (version)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:761/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: No such file or directory

2022-12-05T11:46:25.277Z	62724ed4-8438-48bb-8e7f-cfa358d54df5	INFO	success
END RequestId: 62724ed4-8438-48bb-8e7f-cfa358d54df5
REPORT RequestId: 62724ed4-8438-48bb-8e7f-cfa358d54df5	Duration: 2914.55 ms	Billed Duration: 2915 ms	Memory Size: 128 MB	Max Memory Used: 98 MB	Init Duration: 148.06 ms

@@ -1,6 +1,6 @@
FROM lambci/lambda-base-2:build
ENV GS_TAG=gs9561
ENV GS_VERSION=9.56.1
ENV GS_TAG=gs1000
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure if this is the desired tag for v10, given it now seems to be 'lower' than the previous 9.56.1 tag

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, it's used only to download the correct build

@ryancormack
Copy link
Contributor Author

Fixes #17

@ryancormack
Copy link
Contributor Author

I can update the readme docs once the new layer version has been published

Copy link
Member

@vladholubiev vladholubiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ryancormack!

@vladholubiev vladholubiev merged commit 0361c78 into shelfio:master Dec 5, 2022
@vladholubiev
Copy link
Member

I can update the readme docs once the new layer version has been published

I've just updated the readme, but thanks for offering!

v-rysev pushed a commit to v-rysev/ghostscript-lambda-layer that referenced this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants