forked from Umkus/lambda-layer-sharp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc8a1fa
commit ea641fc
Showing
3 changed files
with
4 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,21 +22,7 @@ A pre-built layer zip file is available on the [Releases page](https://github.co | |
git clone [email protected]:bubblydoo/lambda-layer-sharp.git | ||
cd lambda-layer-sharp/ | ||
``` | ||
1. Install dependencies: | ||
```sh | ||
docker run -v "$PWD":/var/task lambci/lambda:build-nodejs12.x npm --no-optional --no-audit --progress=false install | ||
``` | ||
1. Build the layer: | ||
```sh | ||
docker run -v "$PWD":/var/task lambci/lambda:build-nodejs12.x node ./node_modules/webpack/bin/webpack.js | ||
``` | ||
1. Perform a smoke-test: | ||
```sh | ||
docker run -w /var/task/dist/nodejs -v "$PWD":/var/task lambci/lambda:build-nodejs12.x node -e "console.log(require('sharp'))" | ||
``` | ||
1. Import created layer into your AWS account: | ||
```sh | ||
aws lambda publish-layer-version --layer-name sharp --description "Sharp layer" --license-info "Apache License 2.0" --zip-file fileb://dist/sharp-layer.zip --compatible-runtimes nodejs12.x | ||
1. Build a multi-architecture Docker image: | ||
``` | ||
|
||
## Auto-publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters