Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for "provided" runtime outside of Docker #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

cnuss
Copy link

@cnuss cnuss commented May 14, 2024

Description

This PR eliminates the following error when setting runtime: provided in serverless.yml and useDocker is unset or false in custom.serverless-offline:

GET /dev/hello (λ: hello)
× Unsupported runtime
× Uncaught exception

It now uses the execa library to do a local execution of the bootstrap script:

GET /dev/hello (λ: hello)

(λ: hello) RequestId: b440ae80-b0ca-4d0d-ab6f-ea3226cb9d1a  Duration: 55.80 ms  Billed Duration: 56 ms

Motivation and Context

  • TODO

How Has This Been Tested?

  • I copied ./tests/integration/docker/provided to ./tests/lambda-run-mode/provided
    • I removed useDocker: true and began development until it worked

cnuss added 5 commits May 14, 2024 06:30
* master:
  refactor: use provided log utils (dherault#1784)
  fix: skip adding authorizer to event if no authorizer is configured (dherault#1786)
  Update README.md
* master:
  fix: Support httpApi authorizer with different config and function names (dherault#1763)
  fix: Support ALB Event response headers (dherault#1756)
  v13.6.0
  fix: treat application/octet-stream as a binary encoding (dherault#1587)
  feat: add support for provided.al2023 (dherault#1788)
  v13.5.1
@cnuss cnuss changed the title supoort for "provided" runtime outside of Docker support for "provided" runtime outside of Docker May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant