Skip to content

Commit fd42099

Browse files
committed
Switch to using Lambda Layers
1 parent 3f5cafd commit fd42099

File tree

1,493 files changed

+259177
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,493 files changed

+259177
-154
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.idea
44
.nyc_output/
55
coverage
6-
node_modules
6+
/node_modules/*
77
.env
88
# package directories
99
jspm_packages

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
### Changed
10+
- Sharp is now bundled as its own layer, removing the need for swapping between platforms for local development
11+
912
### Added
1013
- Added support for `ar` param, allowing an aspect ratio (16:9) to be supplied
1114

lambdaLayers/SharpLayer/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1. docker run --rm -v "$PWD":/var/task lambci/lambda:build-nodejs10.x npm install sharp
2+
2. Copy new node_modules into nodejs folder
3+
3. In a temporary directory, run `npm install --no-cache --arch=x64 --platform=linux --target=8.10.0 sharp`
4+
4. Locate libvips.so.42.xx.x and libvips-cpp.so.xx.x and copy to lib folder
211 KB
Binary file not shown.
3.95 MB
Binary file not shown.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/detect-libc

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/mkdirp

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/prebuild-install

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/rc

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lambdaLayers/SharpLayer/nodejs/node_modules/.bin/semver

Lines changed: 174 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)