mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
feat(lambda): resolve python3.15, ruby4.0 and the Java AL2023 runtimes to their base images (#9548)
CreateFunction accepted python3.15, ruby4.0, java8.al2023, java11.al2023 and java17.al2023, but ImageResolver had no image for them, so every invoke failed with "The runtime parameter ... is not supported". They now map to python:3.15, ruby:4.0, java:8.al2023, java:11.al2023 and java:17.al2023 on public.ecr.aws/lambda, so every identifier in Lambda's supported runtimes table resolves to an image. The Lambda docs no longer say that any runtime with a base image works, and name the deprecated runtimes Floci runs instead.
This commit is contained in:
1 parent
101cf3f68f
commit
87ace1bc01
3 files changed
+21
-1
No files matched your search
@@ -1603,7 +1603,7 @@ of `{}` or with an empty `Filters` array clears any existing filters.
|
||||
|
||||
## Supported Runtimes
|
||||
|
||||
Any runtime that has an official AWS Lambda container image works with Floci (e.g. `nodejs22.x`, `python3.13`, `java21`, `go1.x`, `provided.al2023`).
|
||||
Floci runs every runtime in Lambda's [supported runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) table, each in its AWS Lambda base image from `public.ecr.aws/lambda`. Of the deprecated runtimes, it runs `nodejs20.x`, `nodejs18.x`, `nodejs16.x`, `python3.10`, `python3.9`, `java8`, `ruby3.2`, `dotnet9`, `dotnet8`, `dotnet6`, `go1.x`, `provided.al2` and `provided`. A function with any other runtime fails to start on invoke.
|
||||
|
||||
With the Docker and Kubernetes executors, ZIP-based `provided.*` runtimes execute the package's
|
||||
`/var/task/bootstrap`, falling back to `/opt/bootstrap` only when the package has
|
||||
|
||||
@@ -16,10 +16,14 @@ public class ImageResolver {
|
||||
private static final Map<String, String> RUNTIME_TO_IMAGE = Map.ofEntries(
|
||||
Map.entry("java25", "java:25"),
|
||||
Map.entry("java21", "java:21"),
|
||||
Map.entry("java17.al2023", "java:17.al2023"),
|
||||
Map.entry("java17", "java:17"),
|
||||
Map.entry("java11.al2023", "java:11.al2023"),
|
||||
Map.entry("java11", "java:11"),
|
||||
Map.entry("java8.al2023", "java:8.al2023"),
|
||||
Map.entry("java8.al2", "java:8.al2"),
|
||||
Map.entry("java8", "java:8"),
|
||||
Map.entry("python3.15", "python:3.15"),
|
||||
Map.entry("python3.14", "python:3.14"),
|
||||
Map.entry("python3.13", "python:3.13"),
|
||||
Map.entry("python3.12", "python:3.12"),
|
||||
@@ -32,6 +36,7 @@ public class ImageResolver {
|
||||
Map.entry("nodejs20.x", "nodejs:20"),
|
||||
Map.entry("nodejs18.x", "nodejs:18"),
|
||||
Map.entry("nodejs16.x", "nodejs:16"),
|
||||
Map.entry("ruby4.0", "ruby:4.0"),
|
||||
Map.entry("ruby3.4", "ruby:3.4"),
|
||||
Map.entry("ruby3.3", "ruby:3.3"),
|
||||
Map.entry("ruby3.2", "ruby:3.2"),
|
||||
|
||||
@@ -25,10 +25,14 @@ class ImageResolverTest {
|
||||
@CsvSource({
|
||||
"java25, public.ecr.aws/lambda/java:25",
|
||||
"java21, public.ecr.aws/lambda/java:21",
|
||||
"java17.al2023, public.ecr.aws/lambda/java:17.al2023",
|
||||
"java17, public.ecr.aws/lambda/java:17",
|
||||
"java11.al2023, public.ecr.aws/lambda/java:11.al2023",
|
||||
"java11, public.ecr.aws/lambda/java:11",
|
||||
"java8.al2023, public.ecr.aws/lambda/java:8.al2023",
|
||||
"java8.al2, public.ecr.aws/lambda/java:8.al2",
|
||||
"java8, public.ecr.aws/lambda/java:8",
|
||||
"python3.15, public.ecr.aws/lambda/python:3.15",
|
||||
"python3.14, public.ecr.aws/lambda/python:3.14",
|
||||
"python3.13, public.ecr.aws/lambda/python:3.13",
|
||||
"python3.12, public.ecr.aws/lambda/python:3.12",
|
||||
@@ -41,6 +45,7 @@ class ImageResolverTest {
|
||||
"nodejs20.x, public.ecr.aws/lambda/nodejs:20",
|
||||
"nodejs18.x, public.ecr.aws/lambda/nodejs:18",
|
||||
"nodejs16.x, public.ecr.aws/lambda/nodejs:16",
|
||||
"ruby4.0, public.ecr.aws/lambda/ruby:4.0",
|
||||
"ruby3.4, public.ecr.aws/lambda/ruby:3.4",
|
||||
"ruby3.3, public.ecr.aws/lambda/ruby:3.3",
|
||||
"ruby3.2, public.ecr.aws/lambda/ruby:3.2",
|
||||
@@ -61,10 +66,14 @@ class ImageResolverTest {
|
||||
@CsvSource({
|
||||
"java25, my.custom.host/lambda/java:25",
|
||||
"java21, my.custom.host/lambda/java:21",
|
||||
"java17.al2023, my.custom.host/lambda/java:17.al2023",
|
||||
"java17, my.custom.host/lambda/java:17",
|
||||
"java11.al2023, my.custom.host/lambda/java:11.al2023",
|
||||
"java11, my.custom.host/lambda/java:11",
|
||||
"java8.al2023, my.custom.host/lambda/java:8.al2023",
|
||||
"java8.al2, my.custom.host/lambda/java:8.al2",
|
||||
"java8, my.custom.host/lambda/java:8",
|
||||
"python3.15, my.custom.host/lambda/python:3.15",
|
||||
"python3.14, my.custom.host/lambda/python:3.14",
|
||||
"python3.13, my.custom.host/lambda/python:3.13",
|
||||
"python3.12, my.custom.host/lambda/python:3.12",
|
||||
@@ -77,6 +86,7 @@ class ImageResolverTest {
|
||||
"nodejs20.x, my.custom.host/lambda/nodejs:20",
|
||||
"nodejs18.x, my.custom.host/lambda/nodejs:18",
|
||||
"nodejs16.x, my.custom.host/lambda/nodejs:16",
|
||||
"ruby4.0, my.custom.host/lambda/ruby:4.0",
|
||||
"ruby3.4, my.custom.host/lambda/ruby:3.4",
|
||||
"ruby3.3, my.custom.host/lambda/ruby:3.3",
|
||||
"ruby3.2, my.custom.host/lambda/ruby:3.2",
|
||||
@@ -100,10 +110,14 @@ class ImageResolverTest {
|
||||
@CsvSource({
|
||||
"java25, my.custom.host/path/lambda/java:25",
|
||||
"java21, my.custom.host/path/lambda/java:21",
|
||||
"java17.al2023, my.custom.host/path/lambda/java:17.al2023",
|
||||
"java17, my.custom.host/path/lambda/java:17",
|
||||
"java11.al2023, my.custom.host/path/lambda/java:11.al2023",
|
||||
"java11, my.custom.host/path/lambda/java:11",
|
||||
"java8.al2023, my.custom.host/path/lambda/java:8.al2023",
|
||||
"java8.al2, my.custom.host/path/lambda/java:8.al2",
|
||||
"java8, my.custom.host/path/lambda/java:8",
|
||||
"python3.15, my.custom.host/path/lambda/python:3.15",
|
||||
"python3.14, my.custom.host/path/lambda/python:3.14",
|
||||
"python3.13, my.custom.host/path/lambda/python:3.13",
|
||||
"python3.12, my.custom.host/path/lambda/python:3.12",
|
||||
@@ -116,6 +130,7 @@ class ImageResolverTest {
|
||||
"nodejs20.x, my.custom.host/path/lambda/nodejs:20",
|
||||
"nodejs18.x, my.custom.host/path/lambda/nodejs:18",
|
||||
"nodejs16.x, my.custom.host/path/lambda/nodejs:16",
|
||||
"ruby4.0, my.custom.host/path/lambda/ruby:4.0",
|
||||
"ruby3.4, my.custom.host/path/lambda/ruby:3.4",
|
||||
"ruby3.3, my.custom.host/path/lambda/ruby:3.3",
|
||||
"ruby3.2, my.custom.host/path/lambda/ruby:3.2",
|
||||
|
||||
Reference in new issue
Block a user