Skip to content

[feat] Add Apple container support (opt-in) #644

@manojmahapatra

Description

@manojmahapatra

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 container

    • container 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions