diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 687c93f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,248 +0,0 @@ -version: 2.1 - -orbs: - aws-cli: circleci/aws-cli@1.2.1 - -commands: - publish: - steps: - - checkout - - aws-cli/setup - - run: - name: Install Git LFS - command: | - wget -O lfs.deb https://packagecloud.io/github/git-lfs/packages/debian/stretch/git-lfs_2.7.2_amd64.deb/download - sudo dpkg -i lfs.deb - - git lfs install - git lfs pull - - run: ./publish.sh - -jobs: - ap_northeast_1: - executor: aws-cli/default - environment: - TARGET_REGION: ap-northeast-1 - steps: - - publish - - ap_northeast_2: - executor: aws-cli/default - environment: - TARGET_REGION: ap-northeast-2 - steps: - - publish - - ap_south_1: - executor: aws-cli/default - environment: - TARGET_REGION: ap-south-1 - steps: - - publish - - ap_southeast_1: - executor: aws-cli/default - environment: - TARGET_REGION: ap-southeast-1 - steps: - - publish - - ap_southeast_2: - executor: aws-cli/default - environment: - TARGET_REGION: ap-southeast-2 - steps: - - publish - - ca_central_1: - executor: aws-cli/default - environment: - TARGET_REGION: ca-central-1 - steps: - - publish - - eu_north_1: - executor: aws-cli/default - environment: - TARGET_REGION: eu-north-1 - steps: - - publish - - eu_central_1: - executor: aws-cli/default - environment: - TARGET_REGION: eu-central-1 - steps: - - publish - - eu_west_1: - executor: aws-cli/default - environment: - TARGET_REGION: eu-west-1 - steps: - - publish - - eu_west_2: - executor: aws-cli/default - environment: - TARGET_REGION: eu-west-2 - steps: - - publish - - eu_west_3: - executor: aws-cli/default - environment: - TARGET_REGION: eu-west-3 - steps: - - publish - - sa_east_1: - executor: aws-cli/default - environment: - TARGET_REGION: sa-east-1 - steps: - - publish - - us_east_1: - executor: aws-cli/default - environment: - TARGET_REGION: us-east-1 - steps: - - publish - - us_east_2: - executor: aws-cli/default - environment: - TARGET_REGION: us-east-2 - steps: - - publish - - us_west_1: - executor: aws-cli/default - environment: - TARGET_REGION: us-west-1 - steps: - - publish - - us_west_2: - executor: aws-cli/default - environment: - TARGET_REGION: us-west-2 - steps: - - publish - -workflows: - version: 2 - publish: - jobs: - - ap_northeast_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - ap_northeast_2: - context: public-lambda-layers - filters: - branches: - only: - - master - - - ap_south_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - ap_southeast_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - ap_southeast_2: - context: public-lambda-layers - filters: - branches: - only: - - master - - - ca_central_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - eu_north_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - eu_central_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - eu_west_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - eu_west_2: - context: public-lambda-layers - filters: - branches: - only: - - master - - - eu_west_3: - context: public-lambda-layers - filters: - branches: - only: - - master - - - sa_east_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - us_east_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - us_east_2: - context: public-lambda-layers - filters: - branches: - only: - - master - - - us_west_1: - context: public-lambda-layers - filters: - branches: - only: - - master - - - us_west_2: - context: public-lambda-layers - filters: - branches: - only: - - master diff --git a/.husky/post-checkout b/.husky/post-checkout new file mode 100755 index 0000000..c37815e --- /dev/null +++ b/.husky/post-checkout @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; } +git lfs post-checkout "$@" diff --git a/.husky/post-commit b/.husky/post-commit new file mode 100755 index 0000000..e5230c3 --- /dev/null +++ b/.husky/post-commit @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; } +git lfs post-commit "$@" diff --git a/.husky/post-merge b/.husky/post-merge new file mode 100755 index 0000000..c99b752 --- /dev/null +++ b/.husky/post-merge @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; } +git lfs post-merge "$@" diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..216e915 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,3 @@ +#!/bin/sh +command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; } +git lfs pre-push "$@" diff --git a/Dockerfile b/Dockerfile index 44a194b..d25d7e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM lambci/lambda-base-2:build -ENV GS_TAG=gs9550 -ENV GS_VERSION=9.55.0 +ENV GS_TAG=gs10040 +ENV GS_VERSION=10.04.0 RUN yum install -y wget diff --git a/README.md b/README.md index c0ee747..dc011a3 100644 --- a/README.md +++ b/README.md @@ -5,102 +5,28 @@ Click on Layers and choose "Add a layer", and "Provide a layer version ARN" and enter the following ARN. ``` -arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:9 +arn:aws:lambda::764866452798:layer:ghostscript: ``` Works with the following [AWS Lambda runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) which run on Amazon Linux 2: -- nodejs14.x, nodejs12.x -- nodejs10.x +- nodejs16.x, nodejs14.x, nodejs12.x, nodejs10.x - python3.8 - java11 -## Version ARNs - -### Ghostscript v9.55.0 - -| AWS Region | Layer ARN | -| -------------- | ---------------------------------------------------------------- | -| us-east-1 | `arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:9` | -| us-east-2 | `arn:aws:lambda:us-east-2:764866452798:layer:ghostscript:9` | -| us-west-1 | `arn:aws:lambda:us-west-1:764866452798:layer:ghostscript:9` | -| us-west-2 | `arn:aws:lambda:us-west-2:764866452798:layer:ghostscript:9` | -| ca-central-1 | `arn:aws:lambda:ca-central-1:764866452798:layer:ghostscript:9` | -| sa-east-1 | `arn:aws:lambda:sa-east-1:764866452798:layer:ghostscript:9` | -| eu-north-1 | `arn:aws:lambda:eu-north-1:764866452798:layer:ghostscript:9` | -| eu-central-1 | `arn:aws:lambda:eu-central-1:764866452798:layer:ghostscript:9` | -| eu-west-1 | `arn:aws:lambda:eu-west-1:764866452798:layer:ghostscript:9` | -| eu-west-2 | `arn:aws:lambda:eu-west-2:764866452798:layer:ghostscript:9` | -| eu-west-3 | `arn:aws:lambda:eu-west-3:764866452798:layer:ghostscript:10` | -| ap-northeast-1 | `arn:aws:lambda:ap-northeast-1:764866452798:layer:ghostscript:9` | -| ap-northeast-2 | `arn:aws:lambda:ap-northeast-2:764866452798:layer:ghostscript:9` | -| ap-south-1 | `arn:aws:lambda:ap-south-1:764866452798:layer:ghostscript:9` | -| ap-southeast-1 | `arn:aws:lambda:ap-southeast-1:764866452798:layer:ghostscript:9` | -| ap-southeast-2 | `arn:aws:lambda:ap-southeast-2:764866452798:layer:ghostscript:9` | - -### Ghostscript v9.52 - -| AWS Region | Layer ARN | -| -------------- | ---------------------------------------------------------------- | -| us-east-1 | `arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:8` | -| us-east-2 | `arn:aws:lambda:us-east-2:764866452798:layer:ghostscript:8` | -| us-west-1 | `arn:aws:lambda:us-west-1:764866452798:layer:ghostscript:8` | -| us-west-2 | `arn:aws:lambda:us-west-2:764866452798:layer:ghostscript:8` | -| ca-central-1 | `arn:aws:lambda:ca-central-1:764866452798:layer:ghostscript:8` | -| sa-east-1 | `arn:aws:lambda:sa-east-1:764866452798:layer:ghostscript:8` | -| eu-north-1 | `arn:aws:lambda:eu-north-1:764866452798:layer:ghostscript:8` | -| eu-central-1 | `arn:aws:lambda:eu-central-1:764866452798:layer:ghostscript:8` | -| eu-west-1 | `arn:aws:lambda:eu-west-1:764866452798:layer:ghostscript:8` | -| eu-west-2 | `arn:aws:lambda:eu-west-2:764866452798:layer:ghostscript:8` | -| eu-west-3 | `arn:aws:lambda:eu-west-3:764866452798:layer:ghostscript:9` | -| ap-northeast-1 | `arn:aws:lambda:ap-northeast-1:764866452798:layer:ghostscript:8` | -| ap-northeast-2 | `arn:aws:lambda:ap-northeast-2:764866452798:layer:ghostscript:8` | -| ap-south-1 | `arn:aws:lambda:ap-south-1:764866452798:layer:ghostscript:8` | -| ap-southeast-1 | `arn:aws:lambda:ap-southeast-1:764866452798:layer:ghostscript:8` | -| ap-southeast-2 | `arn:aws:lambda:ap-southeast-2:764866452798:layer:ghostscript:8` | - -### Ghostscript v9.50 - -| AWS Region | Layer ARN | -| -------------- | ---------------------------------------------------------------- | -| us-east-1 | `arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:6` | -| us-east-2 | `arn:aws:lambda:us-east-2:764866452798:layer:ghostscript:6` | -| us-west-1 | `arn:aws:lambda:us-west-1:764866452798:layer:ghostscript:6` | -| us-west-2 | `arn:aws:lambda:us-west-2:764866452798:layer:ghostscript:6` | -| ca-central-1 | `arn:aws:lambda:ca-central-1:764866452798:layer:ghostscript:6` | -| sa-east-1 | `arn:aws:lambda:sa-east-1:764866452798:layer:ghostscript:6` | -| eu-north-1 | `arn:aws:lambda:eu-north-1:764866452798:layer:ghostscript:6` | -| eu-central-1 | `arn:aws:lambda:eu-central-1:764866452798:layer:ghostscript:6` | -| eu-west-1 | `arn:aws:lambda:eu-west-1:764866452798:layer:ghostscript:6` | -| eu-west-2 | `arn:aws:lambda:eu-west-2:764866452798:layer:ghostscript:6` | -| eu-west-3 | `arn:aws:lambda:eu-west-3:764866452798:layer:ghostscript:7` | -| ap-northeast-1 | `arn:aws:lambda:ap-northeast-1:764866452798:layer:ghostscript:6` | -| ap-northeast-2 | `arn:aws:lambda:ap-northeast-2:764866452798:layer:ghostscript:6` | -| ap-south-1 | `arn:aws:lambda:ap-south-1:764866452798:layer:ghostscript:6` | -| ap-southeast-1 | `arn:aws:lambda:ap-southeast-1:764866452798:layer:ghostscript:6` | -| ap-southeast-2 | `arn:aws:lambda:ap-southeast-2:764866452798:layer:ghostscript:6` | - -### Ghostscript v9.20 - -| AWS Region | Layer ARN | -| -------------- | ---------------------------------------------------------------- | -| us-east-1 | `arn:aws:lambda:us-east-1:764866452798:layer:ghostscript:1` | -| us-east-2 | `arn:aws:lambda:us-east-2:764866452798:layer:ghostscript:1` | -| us-west-1 | `arn:aws:lambda:us-west-1:764866452798:layer:ghostscript:1` | -| us-west-2 | `arn:aws:lambda:us-west-2:764866452798:layer:ghostscript:1` | -| ca-central-1 | `arn:aws:lambda:ca-central-1:764866452798:layer:ghostscript:1` | -| sa-east-1 | `arn:aws:lambda:sa-east-1:764866452798:layer:ghostscript:1` | -| eu-north-1 | `arn:aws:lambda:eu-north-1:764866452798:layer:ghostscript:1` | -| eu-central-1 | `arn:aws:lambda:eu-central-1:764866452798:layer:ghostscript:1` | -| eu-west-1 | `arn:aws:lambda:eu-west-1:764866452798:layer:ghostscript:1` | -| eu-west-2 | `arn:aws:lambda:eu-west-2:764866452798:layer:ghostscript:1` | -| eu-west-3 | `arn:aws:lambda:eu-west-3:764866452798:layer:ghostscript:1` | -| ap-northeast-1 | `arn:aws:lambda:ap-northeast-1:764866452798:layer:ghostscript:1` | -| ap-northeast-2 | `arn:aws:lambda:ap-northeast-2:764866452798:layer:ghostscript:1` | -| ap-south-1 | `arn:aws:lambda:ap-south-1:764866452798:layer:ghostscript:1` | -| ap-southeast-1 | `arn:aws:lambda:ap-southeast-1:764866452798:layer:ghostscript:1` | -| ap-southeast-2 | `arn:aws:lambda:ap-southeast-2:764866452798:layer:ghostscript:1` | +## Version Numbers + +| Ghostscript | VERSION | eu-west-3 | +|-------------|---------|-----------| +| v10.04.0 | 17 | 18 | +| 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? diff --git a/ghostscript.zip b/ghostscript.zip index 94691dc..8d90328 100644 Binary files a/ghostscript.zip and b/ghostscript.zip differ diff --git a/publish.sh b/publish.sh index 53419f5..2e6a83a 100755 --- a/publish.sh +++ b/publish.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -GHOSTSCRIPT_VERSION=9.55.0 +GHOSTSCRIPT_VERSION=10.04.0 LAYER_NAME='ghostscript' LAYER_VERSION=$( aws lambda publish-layer-version --region "$TARGET_REGION" \ diff --git a/renovate.json b/renovate.json index ec100df..6c38666 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,7 @@ { - "extends": ["github>shelfio/renovate-config"], - "labels": ["dependencies", "backend"] + "extends": ["config:base"], + "labels": ["dependencies", "backend"], + "ignoreDeps": [ + "@types/node" + ] }