Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN yum install -y libpng-devel libjpeg-devel libtiff-devel libuuid-devel gcc

ARG GM_VERSION

RUN curl https://versaweb.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/${GM_VERSION}/GraphicsMagick-${GM_VERSION}.tar.xz | tar -xJ && \
cd GraphicsMagick-${GM_VERSION} && \
RUN curl -L https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/${GM_VERSION}/GraphicsMagick-${GM_VERSION}.tar.xz | tar -xJ
RUN cd GraphicsMagick-${GM_VERSION} && \
./configure --prefix=/opt --enable-shared=no --enable-static=yes --with-gs-font-dir=/opt/share/fonts/default/Type1 && \
make && \
make install
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Click on Layers and choose `Add a layer`, and `Provide a layer version ARN` and
arn:aws:lambda:eu-west-1:175033217214:layer:graphicsmagick:2
```

![Provide layer ARN](img/usage.png "Provide layer ARN screenshot")
![Provide layer ARN](img/usage.png 'Provide layer ARN screenshot')

## Version ARNs

| GraphicsMagick version | ARN |
| --- | --- |
| 1.3.31 | `arn:aws:lambda:<region>:175033217214:layer:graphicsmagick:2` |
| GraphicsMagick version | ARN |
| ---------------------- | ------------------------------------------------------------- |
| 1.3.38 | `arn:aws:lambda:<region>:175033217214:layer:graphicsmagick:2` |

## Available Regions

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

export GM_VERSION=1.3.31
export GM_VERSION=1.3.38

docker build --build-arg GM_VERSION -t gm-lambda-layer .
docker run --rm gm-lambda-layer cat /tmp/gm-${GM_VERSION}.zip > ./layer.zip
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

GM_VERSION=1.3.31
GM_VERSION=1.3.38
LAYER_NAME='graphicsmagick'

REGIONS='
Expand Down