├── .eslintignore
├── .github
└── FUNDING.yml
├── examples
├── terminal.png
├── go1.x
│ ├── go.mod
│ ├── handler.go
│ └── go.sum
├── java
│ ├── .settings
│ │ ├── org.eclipse.core.resources.prefs
│ │ ├── org.eclipse.buildship.core.prefs
│ │ └── org.eclipse.jdt.core.prefs
│ ├── README.md
│ ├── .classpath
│ ├── build.gradle
│ ├── .project
│ └── src
│ │ └── main
│ │ └── java
│ │ └── pl
│ │ └── lupin
│ │ └── lambda
│ │ └── ExampleHandler.java
├── provided.al2
│ ├── go.mod
│ ├── bootstrap.go
│ └── go.sum
├── post.lua
├── nodejs
│ ├── package.json
│ └── index.js
├── docker-file
│ ├── package.json
│ ├── Dockerfile
│ └── index.js
├── nodejs-native-module
│ ├── package.json
│ ├── test.js
│ └── index.js
├── dotnet6
│ ├── README.md
│ ├── test.csproj
│ ├── test.sln
│ └── Function.cs
├── dotnetcore3.1
│ ├── README.md
│ ├── test.csproj
│ ├── test.sln
│ └── Function.cs
├── ruby
│ └── lambda_function.rb
├── python
│ └── lambda_function.py
└── test-all.sh
├── dump-fs
├── dump-dotnet6
│ ├── global.json
│ ├── dump-dotnet6.csproj
│ └── Function.cs
├── dump-dotnetcore31
│ ├── global.json
│ ├── dump-dotnetcore31.csproj
│ └── Function.cs
├── layer-tar-arm64.zip
├── layer-tar-x86_64.zip
├── dump-provided.al2
│ ├── arm64
│ │ ├── go.mod
│ │ └── main.go
│ └── x86_64
│ │ ├── go.mod
│ │ └── main.go
├── dump-java11
│ ├── .gitignore
│ ├── build.gradle
│ └── src
│ │ └── main
│ │ └── java
│ │ └── pl
│ │ └── lupin
│ │ └── lambda
│ │ ├── DumpJava11_arm64.java
│ │ ├── DumpJava11_x86_64.java
│ │ └── DumpJava11.java
├── dump-java17
│ ├── .gitignore
│ ├── build.gradle
│ └── src
│ │ └── main
│ │ └── java
│ │ └── pl
│ │ └── lupin
│ │ └── lambda
│ │ ├── DumpJava17_arm64.java
│ │ └── DumpJava17_x86_64.java
├── dump-java8.al2
│ ├── .gitignore
│ ├── build.gradle
│ └── src
│ │ └── main
│ │ └── java
│ │ └── pl
│ │ └── lupin
│ │ └── lambda
│ │ ├── DumpJava8AL2_arm64.java
│ │ └── DumpJava8AL2_x86_64.java
├── dump-all.sh
├── dump-ruby27
│ └── handler.rb
├── dump-ruby32
│ └── handler.rb
├── dump-nodejs12x
│ └── handler.js
├── dump-nodejs14x
│ └── handler.js
├── dump-nodejs16x
│ └── handler.js
├── dump-nodejs18x
│ └── handler.js
├── dump-base-2
│ └── handler.js
├── dump-python38
│ └── handler.py
├── dump-python39
│ └── handler.py
├── dump-python310
│ └── handler.py
└── dump-python311
│ └── handler.py
├── runtimes
├── dotnet6-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── java11-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── java11-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── java17-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── java17-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── ruby2.7-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── ruby3.2-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── dotnet6-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── java8.al2-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── java8.al2-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs12.x-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs14.x-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs16.x-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs18.x-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.10-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.8-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.8-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.9-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.9-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── ruby2.7-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── ruby3.2-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs12.x-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs14.x-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs16.x-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── nodejs18.x-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.10-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.11-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── dotnetcore3.1-arm64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── dotnetcore3.1-x86_64
│ ├── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── python3.11-arm64
│ ├── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── run
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
├── provided.al2-arm64
│ ├── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── run
│ │ ├── build.sh
│ │ ├── go.mod
│ │ ├── publish.sh
│ │ ├── Dockerfile
│ │ └── go.sum
├── provided.al2-x86_64
│ ├── build
│ │ ├── build.sh
│ │ ├── publish.sh
│ │ └── Dockerfile
│ └── run
│ │ ├── build.sh
│ │ ├── go.mod
│ │ ├── publish.sh
│ │ ├── Dockerfile
│ │ └── go.sum
├── get-all-runtimes.sh
├── pull-all-images.sh
├── manifest-all-images.sh
├── build-all-images.sh
└── create-ghcr-images.sh
├── base
├── build-2-arm64
│ ├── build.sh
│ ├── publish.sh
│ └── Dockerfile
├── build-2-x86_64
│ ├── build.sh
│ ├── publish.sh
│ └── Dockerfile
├── base-2-arm64
│ ├── build.sh
│ ├── publish.sh
│ ├── dump-packages.sh
│ ├── Dockerfile
│ └── packages.txt
├── base-2-x86_64
│ ├── build.sh
│ ├── publish.sh
│ ├── dump-packages.sh
│ ├── Dockerfile
│ └── packages.txt
└── tar-find-layer
│ └── build.sh
├── package.json
├── tests
└── native-test.sh
├── LICENSE
├── .gitignore
├── index.js
└── test.js
/.eslintignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: mLupine
4 |
--------------------------------------------------------------------------------
/examples/terminal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mLupine/docker-lambda/HEAD/examples/terminal.png
--------------------------------------------------------------------------------
/dump-fs/dump-dotnet6/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "sdk": {
3 | "version": "6.0.201"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/dump-fs/dump-dotnetcore31/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "sdk": {
3 | "version": "3.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/dump-fs/layer-tar-arm64.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mLupine/docker-lambda/HEAD/dump-fs/layer-tar-arm64.zip
--------------------------------------------------------------------------------
/dump-fs/layer-tar-x86_64.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mLupine/docker-lambda/HEAD/dump-fs/layer-tar-x86_64.zip
--------------------------------------------------------------------------------
/examples/go1.x/go.mod:
--------------------------------------------------------------------------------
1 | module handler
2 |
3 | require github.com/aws/aws-lambda-go v1.13.3
4 |
5 | go 1.15
6 |
--------------------------------------------------------------------------------
/examples/java/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnet6-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java11-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java11-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java11-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java11-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java17-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java17-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java17-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java17-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby2.7-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby3.2-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnet6-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java11-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java11-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java17-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java17-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java8.al2-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java8.al2-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs12.x-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs14.x-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs16.x-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs18.x-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.10-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.10-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.8-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.8-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.8-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.8-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.9-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.9-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.9-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.9-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby2.7-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby3.2-x86_64 .
6 |
--------------------------------------------------------------------------------
/examples/provided.al2/go.mod:
--------------------------------------------------------------------------------
1 | module bootstrap
2 |
3 | require (
4 | github.com/aws/aws-lambda-go v1.19.0
5 | github.com/aws/aws-sdk-go-v2 v0.24.0
6 | )
7 |
8 | go 1.15
9 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnet6-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnet6-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java11-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java11-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java17-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java17-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs12.x-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs14.x-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs16.x-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs18.x-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.10-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.10-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.11-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.11-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby2.7-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby2.7-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby3.2-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:ruby3.2-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnetcore3.1-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnetcore3.1-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java8.al2-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:java8.al2-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs12.x-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs12.x-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs14.x-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs14.x-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs16.x-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs16.x-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs18.x-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:nodejs18.x-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.10-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.10-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.10-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.10-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.11-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.11-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.11-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.11-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.8-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.8-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.8-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.8-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.9-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.9-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.9-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:python3.9-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/dump-fs/dump-provided.al2/arm64/go.mod:
--------------------------------------------------------------------------------
1 | module bootstrap
2 |
3 | require (
4 | github.com/aws/aws-lambda-go v1.19.0
5 | github.com/aws/aws-sdk-go-v2 v0.24.0
6 | )
7 |
8 | go 1.16
9 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnetcore3.1-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:provided.al2-build-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --no-cache --squash -t mlupin/docker-lambda:provided.al2-arm64 .
6 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:provided.al2-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/python3.11-arm64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --no-cache --squash -t mlupin/docker-lambda:python3.11-arm64 .
6 |
--------------------------------------------------------------------------------
/base/build-2-arm64/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --platform linux/arm64 --no-cache --squash -t mlupin/lambda-base-2:build-arm64 .
6 |
--------------------------------------------------------------------------------
/base/build-2-x86_64/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --platform linux/amd64 --no-cache --squash -t mlupin/lambda-base-2:build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-x86_64/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --squash -t mlupin/docker-lambda:dotnetcore3.1-build-x86_64 .
6 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/run/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | docker build --progress plain --no-cache --squash -t mlupin/docker-lambda:provided.al2-x86_64 .
6 |
--------------------------------------------------------------------------------
/dump-fs/dump-provided.al2/x86_64/go.mod:
--------------------------------------------------------------------------------
1 | module dump-provided_al2
2 |
3 | require (
4 | github.com/aws/aws-lambda-go v1.19.0
5 | github.com/aws/aws-sdk-go-v2 v0.24.0
6 | )
7 |
8 | go 1.16
9 |
--------------------------------------------------------------------------------
/examples/post.lua:
--------------------------------------------------------------------------------
1 | -- Run with:
2 | -- wrk -s post.lua 'http://localhost:9001/2015-03-31/functions/myfunction/invocations'
3 | wrk.method = "POST"
4 | wrk.body = "{}"
5 | wrk.headers["Content-Type"] = "application/json"
6 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/run/go.mod:
--------------------------------------------------------------------------------
1 | module init
2 |
3 | require (
4 | github.com/go-chi/chi v4.0.2+incompatible
5 | github.com/go-chi/render v1.0.1
6 | github.com/rjeczalik/notify v0.9.2
7 | )
8 |
9 | go 1.15
10 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/run/go.mod:
--------------------------------------------------------------------------------
1 | module init
2 |
3 | require (
4 | github.com/go-chi/chi v4.0.2+incompatible
5 | github.com/go-chi/render v1.0.1
6 | github.com/rjeczalik/notify v0.9.2
7 | )
8 |
9 | go 1.15
10 |
--------------------------------------------------------------------------------
/runtimes/get-all-runtimes.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -euo pipefail
4 | export DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
5 |
6 | find $DIR -mindepth 1 -maxdepth 1 -type d | rev | cut -d'/' -f1 | cut -d'-' -f2- | rev | sort -u
7 |
--------------------------------------------------------------------------------
/examples/nodejs/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "docker-run",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "scripts": {
6 | "test": "docker run --rm -v \"$PWD\":/var/task mlupin/docker-lambda:nodejs8.10 index.handler '{\"some\": \"event\"}'"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/dump-fs/dump-java11/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 | .gradle
3 | /build/
4 | /bin/
5 | /.settings/
6 | .project
7 | .classpath
8 |
9 | # Package Files
10 | *.jar
11 | *.war
12 | *.ear
13 |
14 | # Serverless directories
15 | .serverless
16 |
17 | !/gradle/wrapper/gradle-wrapper.jar
18 |
--------------------------------------------------------------------------------
/dump-fs/dump-java17/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 | .gradle
3 | /build/
4 | /bin/
5 | /.settings/
6 | .project
7 | .classpath
8 |
9 | # Package Files
10 | *.jar
11 | *.war
12 | *.ear
13 |
14 | # Serverless directories
15 | .serverless
16 |
17 | !/gradle/wrapper/gradle-wrapper.jar
18 |
--------------------------------------------------------------------------------
/dump-fs/dump-java8.al2/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 | .gradle
3 | /build/
4 | /bin/
5 | /.settings/
6 | .project
7 | .classpath
8 |
9 | # Package Files
10 | *.jar
11 | *.war
12 | *.ear
13 |
14 | # Serverless directories
15 | .serverless
16 |
17 | !/gradle/wrapper/gradle-wrapper.jar
18 |
--------------------------------------------------------------------------------
/base/base-2-arm64/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | curl -O https://docker-lambda.s3.amazonaws.com/fs/base-2-arm64.tgz
4 |
5 | set -euxo pipefail
6 |
7 | docker build --progress plain --no-cache --platform linux/arm64 --squash -t mlupin/lambda-base-2:arm64 .
8 |
9 | rm ./base-2-arm64.tgz
10 |
--------------------------------------------------------------------------------
/examples/docker-file/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "docker-build",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "engines" : {
6 | "node" : ">=0.11.12"
7 | },
8 | "scripts": {
9 | "test": "docker build -t build-test . && docker run --rm build-test"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/base/base-2-x86_64/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | curl -O https://docker-lambda.s3.amazonaws.com/fs/base-2-x86_64.tgz
4 |
5 | set -euxo pipefail
6 |
7 | docker build --progress plain --no-cache --platform linux/amd64 --squash -t mlupin/lambda-base-2:x86_64 .
8 |
9 | rm ./base-2-x86_64.tgz
10 |
--------------------------------------------------------------------------------
/dump-fs/dump-all.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -euo pipefail
4 |
5 | echo "Dumping all Amazon Linux 2 lambda environments"
6 | sleep 1
7 |
8 | for lambda in $(serverless deploy list functions | grep 'dump-'); do
9 | echo "Invoking ${lambda}…"
10 | serverless invoke -f $lambda -l
11 | done
12 |
13 | echo "All done."
14 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnet6"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java11-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java11"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java11-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java11"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java17-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java17"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java17-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java17"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby2.7"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby3.2"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnet6"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java8.al2"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.8-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.8"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.9-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.9"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby2.7"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby3.2"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnet6-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnet6-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnet6-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java11-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java11-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java11-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java11-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java17-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java17-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java17-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java17-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java8.al2"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs12.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs12.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs14.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs14.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs16.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs16.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs18.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs18.x"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:provided.al2"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.10-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.10"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.10-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.10"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.11-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.11"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.11-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.11"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.8-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.8"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.9-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.9"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby2.7-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby2.7-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby2.7-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby3.2-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/ruby3.2-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:ruby3.2-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-arm64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnetcore3.1"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnetcore3.1"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java8.al2-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/java8.al2-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:java8.al2-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs12.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs14.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs16.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs18.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/run/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:provided.al2"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.10-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.10-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.11-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.11-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.8-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.8-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.8-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.8-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.9-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.9-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.9-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.9-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnetcore3.1-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs12.x-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs12.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs14.x-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs14.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs16.x-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs16.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/nodejs18.x-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:nodejs18.x-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:provided.al2-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:provided.al2-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.10-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.10-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/python3.11-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:python3.11-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/runtimes/dotnetcore3.1-x86_64/build/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export NO_ARCH_TAG="mlupin/docker-lambda:dotnetcore3.1-build"
7 | export BASE_IMAGE="${NO_ARCH_TAG}-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker push ${BASE_IMAGE}
11 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
12 |
--------------------------------------------------------------------------------
/examples/nodejs-native-module/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "module-native",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "scripts": {
6 | "build": "docker run --rm -v \"$PWD\":/var/task mlupin/docker-lambda:nodejs12.x-build npm rebuild --unsafe-perm --build-from-source",
7 | "test": "node test.js"
8 | },
9 | "dependencies": {
10 | "bcrypt": "^5.0.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/examples/dotnet6/README.md:
--------------------------------------------------------------------------------
1 | # .NET 6.0 docker-lambda example
2 |
3 | ```sh
4 | # Will place the compiled code in `./pub`
5 | docker run --rm -v "$PWD":/var/task mlupin/docker-lambda:build-dotnet6 dotnet publish -c Release -o pub
6 |
7 | # Then you can run using that as the task directory
8 | docker run --rm -v "$PWD"/pub:/var/task mlupin/docker-lambda:dotnet6 test::test.Function::FunctionHandler '{"some": "event"}'
9 | ```
10 |
--------------------------------------------------------------------------------
/examples/java/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | arguments=
2 | auto.sync=false
3 | build.scans.enabled=false
4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.3))
5 | connection.project.dir=
6 | eclipse.preferences.version=1
7 | gradle.user.home=
8 | java.home=
9 | jvm.arguments=
10 | offline.mode=false
11 | override.workspace.settings=true
12 | show.console.view=true
13 | show.executions.view=true
14 |
--------------------------------------------------------------------------------
/examples/docker-file/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mlupin/docker-lambda:nodejs8.10
2 |
3 | ENV AWS_LAMBDA_FUNCTION_NAME=docker-build \
4 | AWS_LAMBDA_FUNCTION_VERSION=2 \
5 | AWS_LAMBDA_FUNCTION_MEMORY_SIZE=384 \
6 | AWS_LAMBDA_FUNCTION_TIMEOUT=60 \
7 | AWS_REGION=us-east-1
8 |
9 | COPY . .
10 |
11 | # If we want to match permissions in /var/task exactly...
12 | USER root
13 | RUN chown -R slicer:497 .
14 | USER sbx_user1051
15 |
--------------------------------------------------------------------------------
/runtimes/pull-all-images.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -euo pipefail
4 | export DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
5 |
6 | for runtime in $($DIR/get-all-runtimes.sh); do
7 | docker pull mlupin/docker-lambda:${runtime}-x86_64
8 | docker pull mlupin/docker-lambda:${runtime}-arm64
9 | docker pull mlupin/docker-lambda:${runtime}-build-x86_64
10 | docker pull mlupin/docker-lambda:${runtime}-build-arm64
11 | done
12 |
--------------------------------------------------------------------------------
/examples/dotnetcore3.1/README.md:
--------------------------------------------------------------------------------
1 | # .NET Core 3.1 docker-lambda example
2 |
3 | ```sh
4 | # Will place the compiled code in `./pub`
5 | docker run --rm -v "$PWD":/var/task mlupin/docker-lambda:build-dotnetcore3.1 dotnet publish -c Release -o pub
6 |
7 | # Then you can run using that as the task directory
8 | docker run --rm -v "$PWD"/pub:/var/task mlupin/docker-lambda:dotnetcore3.1 test::test.Function::FunctionHandler '{"some": "event"}'
9 | ```
10 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/build/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mlupin/docker-lambda:provided.al2-arm64
2 |
3 | FROM mlupin/docker-lambda:build-arm64
4 |
5 | COPY --from=0 /var/runtime /var/runtime
6 | COPY --from=0 /var/lang /var/lang
7 | COPY --from=0 /var/rapid /var/rapid
8 |
9 | # Add these as a separate layer as they get updated frequently
10 | RUN pipx install awscli==1.* && \
11 | pipx install aws-lambda-builders==1.2.0 && \
12 | pipx install aws-sam-cli==1.15.0
13 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/build/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mlupin/docker-lambda:provided.al2-x86_64
2 |
3 | FROM mlupin/docker-lambda:build-x86_64
4 |
5 | COPY --from=0 /var/runtime /var/runtime
6 | COPY --from=0 /var/lang /var/lang
7 | COPY --from=0 /var/rapid /var/rapid
8 |
9 | # Add these as a separate layer as they get updated frequently
10 | RUN pipx install awscli==1.* && \
11 | pipx install aws-lambda-builders==1.2.0 && \
12 | pipx install aws-sam-cli==1.15.0
13 |
--------------------------------------------------------------------------------
/examples/dotnet6/test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 | true
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/examples/dotnetcore3.1/test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp3.1
5 | true
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/examples/java/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3 | org.eclipse.jdt.core.compiler.compliance=1.8
4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7 | org.eclipse.jdt.core.compiler.release=disabled
8 | org.eclipse.jdt.core.compiler.source=1.8
9 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-arm64/run/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM golang:1
2 |
3 | WORKDIR /app
4 |
5 | ENV CGO_ENABLED=0
6 |
7 | COPY go.mod go.sum ./
8 | RUN go mod download
9 |
10 | COPY init.go ./
11 | RUN GOARCH=arm64 GOOS=linux go build init.go
12 |
13 | FROM mlupin/docker-lambda:base-arm64
14 |
15 | ENV PATH=/var/lang/bin:$PATH \
16 | LD_LIBRARY_PATH=/var/lang/lib:$LD_LIBRARY_PATH
17 |
18 | COPY --from=0 /app/init /var/runtime/init
19 |
20 | USER sbx_user1051
21 |
22 | ENTRYPOINT ["/var/runtime/init"]
23 |
--------------------------------------------------------------------------------
/runtimes/provided.al2-x86_64/run/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM golang:1
2 |
3 | WORKDIR /app
4 |
5 | ENV CGO_ENABLED=0
6 |
7 | COPY go.mod go.sum ./
8 | RUN go mod download
9 |
10 | COPY init.go ./
11 | RUN GOARCH=amd64 GOOS=linux go build init.go
12 |
13 | FROM mlupin/docker-lambda:base-x86_64
14 |
15 | ENV PATH=/var/lang/bin:$PATH \
16 | LD_LIBRARY_PATH=/var/lang/lib:$LD_LIBRARY_PATH
17 |
18 | COPY --from=0 /app/init /var/runtime/init
19 |
20 | USER sbx_user1051
21 |
22 | ENTRYPOINT ["/var/runtime/init"]
23 |
--------------------------------------------------------------------------------
/examples/nodejs-native-module/test.js:
--------------------------------------------------------------------------------
1 | var dockerLambda = require('../..')
2 |
3 | var match = dockerLambda({ event: { password: 'lambda-docker' }, dockerImage: 'mlupin/docker-lambda:nodejs12.x' })
4 |
5 | console.log(match === 'Matches!' ? 'Match Passed' : 'Match Failed: ' + match)
6 |
7 | var nonMatch = dockerLambda({ event: { password: 'lambda-mocker' }, dockerImage: 'mlupin/docker-lambda:nodejs12.x' })
8 |
9 | console.log(nonMatch === 'NopeNopeNope' ? 'Non-Match Passed' : 'Non-Match Failed: ' + nonMatch)
10 |
--------------------------------------------------------------------------------
/base/base-2-arm64/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export BASE_IMAGE="mlupin/lambda-base-2:arm64"
7 | export CC_IMAGE="mlupin/docker-lambda:base-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker tag ${BASE_IMAGE} ${CC_IMAGE}
11 | docker tag ${BASE_IMAGE} ${CC_IMAGE}-${PUBLISH_DATE}
12 | docker push ${BASE_IMAGE}
13 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
14 | docker push ${CC_IMAGE}
15 | docker push ${CC_IMAGE}-${PUBLISH_DATE}
16 |
--------------------------------------------------------------------------------
/base/base-2-x86_64/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export BASE_IMAGE="mlupin/lambda-base-2:x86_64"
7 | export CC_IMAGE="mlupin/docker-lambda:base-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker tag ${BASE_IMAGE} ${CC_IMAGE}
11 | docker tag ${BASE_IMAGE} ${CC_IMAGE}-${PUBLISH_DATE}
12 | docker push ${BASE_IMAGE}
13 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
14 | docker push ${CC_IMAGE}
15 | docker push ${CC_IMAGE}-${PUBLISH_DATE}
16 |
--------------------------------------------------------------------------------
/base/build-2-arm64/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export BASE_IMAGE="mlupin/lambda-base-2:build-arm64"
7 | export CC_IMAGE="mlupin/docker-lambda:build-arm64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker tag ${BASE_IMAGE} ${CC_IMAGE}
11 | docker tag ${BASE_IMAGE} ${CC_IMAGE}-${PUBLISH_DATE}
12 | docker push ${BASE_IMAGE}
13 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
14 | docker push ${CC_IMAGE}
15 | docker push ${CC_IMAGE}-${PUBLISH_DATE}
16 |
--------------------------------------------------------------------------------
/base/build-2-x86_64/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -euxo pipefail
4 |
5 | export PUBLISH_DATE=$(date "+%Y%m%d%H%M")
6 | export BASE_IMAGE="mlupin/lambda-base-2:build-x86_64"
7 | export CC_IMAGE="mlupin/docker-lambda:build-x86_64"
8 |
9 | docker tag ${BASE_IMAGE} ${BASE_IMAGE}-${PUBLISH_DATE}
10 | docker tag ${BASE_IMAGE} ${CC_IMAGE}
11 | docker tag ${BASE_IMAGE} ${CC_IMAGE}-${PUBLISH_DATE}
12 | docker push ${BASE_IMAGE}
13 | docker push ${BASE_IMAGE}-${PUBLISH_DATE}
14 | docker push ${CC_IMAGE}
15 | docker push ${CC_IMAGE}-${PUBLISH_DATE}
16 |
--------------------------------------------------------------------------------
/examples/java/README.md:
--------------------------------------------------------------------------------
1 | # Java 8 docker-lambda example
2 |
3 | Run with:
4 |
5 | ```sh
6 | # Will place the compiled code in `./build/docker`
7 | docker run --rm -v "$PWD":/app -w /app gradle:6.0 gradle build
8 |
9 | # Then you can run using that directory as the task directory
10 | docker run --rm -v "$PWD/build/docker":/var/task mlupin/docker-lambda:java8.al2 pl.lupin.lambda.ExampleHandler '{"some": "event"}'
11 |
12 | # OR
13 | docker run --rm -v "$PWD/build/docker":/var/task mlupin/docker-lambda:java11 pl.lupin.lambda.ExampleHandler '{"some": "event"}'
14 | ```
15 |
--------------------------------------------------------------------------------
/dump-fs/dump-java11/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'java'
2 |
3 | sourceCompatibility = '11'
4 | targetCompatibility = '11'
5 |
6 | repositories {
7 | mavenCentral()
8 | }
9 |
10 | dependencies {
11 | implementation (
12 | 'com.amazonaws:aws-lambda-java-core:1.2.0',
13 | 'com.amazonaws:aws-lambda-java-events:2.2.7',
14 | 'com.amazonaws:aws-java-sdk-s3:1.11.681'
15 | )
16 | }
17 |
18 | task buildZip(type: Zip) {
19 | from compileJava
20 | from processResources
21 | into('lib') {
22 | from configurations.runtimeClasspath
23 | }
24 | }
25 |
26 | build.dependsOn buildZip
27 |
--------------------------------------------------------------------------------
/dump-fs/dump-java17/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'java'
2 |
3 | sourceCompatibility = '17'
4 | targetCompatibility = '17'
5 |
6 | repositories {
7 | mavenCentral()
8 | }
9 |
10 | dependencies {
11 | implementation (
12 | 'com.amazonaws:aws-lambda-java-core:1.2.0',
13 | 'com.amazonaws:aws-lambda-java-events:2.2.7',
14 | 'com.amazonaws:aws-java-sdk-s3:1.11.681'
15 | )
16 | }
17 |
18 | task buildZip(type: Zip) {
19 | from compileJava
20 | from processResources
21 | into('lib') {
22 | from configurations.runtimeClasspath
23 | }
24 | }
25 |
26 | build.dependsOn buildZip
27 |
--------------------------------------------------------------------------------
/dump-fs/dump-java8.al2/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'java'
2 |
3 | sourceCompatibility = '1.8'
4 | targetCompatibility = '1.8'
5 |
6 | repositories {
7 | mavenCentral()
8 | }
9 |
10 | dependencies {
11 | implementation (
12 | 'com.amazonaws:aws-lambda-java-core:1.2.0',
13 | 'com.amazonaws:aws-lambda-java-events:2.2.7',
14 | 'com.amazonaws:aws-java-sdk-s3:1.11.681'
15 | )
16 | }
17 |
18 | task buildZip(type: Zip) {
19 | from compileJava
20 | from processResources
21 | into('lib') {
22 | from configurations.runtimeClasspath
23 | }
24 | }
25 |
26 | build.dependsOn buildZip
27 |
--------------------------------------------------------------------------------
/dump-fs/dump-java11/src/main/java/pl/lupin/lambda/DumpJava11_arm64.java:
--------------------------------------------------------------------------------
1 | package pl.lupin.lambda;
2 |
3 | import com.amazonaws.services.lambda.runtime.Context;
4 | import com.amazonaws.services.lambda.runtime.RequestHandler;
5 | import com.amazonaws.services.s3.model.PutObjectResult;
6 |
7 | import pl.lupin.lambda.DumpJava11;
8 |
9 | public class DumpJava11_arm64 implements RequestHandler