mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(lambda): honor platform-specific runtime image overrides (#6786)
Select runtime images with the effective Docker platform while preserving runtime-wide defaults, explicit platform precedence and code-volume helper platform. Signed-off-by: Andre Kurait <akurait@amazon.com> Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
1 parent
80dbdbc0f8
commit
a46a2b32fd
10 files changed
+144
-30
No files matched your search
@@ -1356,3 +1356,16 @@ floci:
|
||||
Replace `<digest>` with the image's full SHA-256 digest. The override applies to
|
||||
zip-based functions using that runtime; other runtimes retain their default images.
|
||||
Custom image URI passthrough and image-package functions are unaffected.
|
||||
|
||||
For Docker functions that share a runtime but use different CPU architectures,
|
||||
add platform-specific keys such as `"java17.linux.amd64"` and
|
||||
`"java17.linux.arm64"`, each pointing to its platform manifest digest.
|
||||
The Docker launcher's effective platform selects that entry before the
|
||||
runtime-wide fallback. Enable `floci.services.lambda.honour-architectures` to
|
||||
use the function's architecture; an explicit Docker `--platform` takes precedence.
|
||||
The code-copy helper uses the same platform. With no selected Docker platform,
|
||||
or for the Kubernetes launcher, the runtime-wide entry and default resolution
|
||||
remain in effect.
|
||||
|
||||
Environment variables use the quoted map-key form, for example
|
||||
`FLOCI_SERVICES_LAMBDA_RUNTIME_IMAGES__JAVA17_LINUX_ARM64__`.
|
||||
Reference in new issue
Block a user