You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Docker support for shell commands in build process
- Execute shell commands inside Docker container when build_in_docker=true
- Add automatic Docker image pull if not found locally
- Fix critical bug: handle query=None in BuildPlanManager.execute()
- Add 4 unit tests for Docker and host execution paths
- Update README with shell commands documentation and example
- Add example module demonstrating Docker shell commands
This allows users to run package managers and build tools that are only
available in the container environment.
All 11 tests passing (7 existing + 4 new).
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -503,6 +503,34 @@ To override the docker entrypoint when building in docker, set `docker_entrypoin
503
503
504
504
The entrypoint must map to a path within your container, so you need to either build your own image that contains the entrypoint or map it to a file on the host by mounting a volume (see [Passing additional Docker options](#passing-additional-docker-options)).
505
505
506
+
#### Shell Commands with Docker
507
+
508
+
When `build_in_docker = true`, shell commands specified in the `commands` parameter are executed inside the Docker container. This allows you to run package managers or other tools that are only available in the Lambda runtime environment:
This is particularly useful when you need to install packages or compile code using tools that are specific to the Lambda runtime environment but may not be available on your build machine.
533
+
506
534
## <aname="package"></a> Deployment package - Create or use existing
507
535
508
536
By default, this module creates deployment package and uses it to create or update Lambda Function or Lambda Layer.
0 commit comments