-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
Describe the feature
The archive plugin currently hard-codes the Docker CLI (docker pull/run) to build lambda zips. Apple container supports container image pull and container run, so we can add an opt-in tool switch without changing defaults.
Use Case
Apple’s container CLI already supports pulling and running OCI images, so the archive plugin should allow opt‑in use of container to build the Amazon Linux artifacts in the same way Docker does.
Proposed Solution
Add a tool selector to the packager:
- CLI flag:
--container-tool docker|container - Env var:
LAMBDA_CONTAINER_TOOL=container
Default remains docker.
Map commands based on tool:
-
Docker
docker pull <image>docker run --rm -v … -w … <image> bash -cl "<cmd>"
-
Apple
containercontainer image pull <image>container run --rm -v … -w … <image> bash -cl "<cmd>"
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels