File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ have_fun : false
2+ code_review :
3+ disable : false
4+ comment_severity_threshold : MEDIUM
5+ max_review_comments : -1
6+ pull_request_opened :
7+ help : false
8+ summary : true
9+ code_review : true
Original file line number Diff line number Diff line change 1+ # Layer Build & Docker Style Guide
2+
3+ ## General
4+ - This project focuses on building AWS Lambda Layers.
5+ - Consistency between the build environment (Docker) and the runtime environment (AWS Lambda) is critical.
6+
7+ ## Shell Scripting (Build Scripts)
8+ - Scripts like ` build-multiarch.sh ` and ` package.sh ` should be robust.
9+ - Use ` set -e ` to fail immediately if a build step fails.
10+ - Echo clear status messages to the console during long build processes.
11+ - Handle architecture differences (x86_64 vs arm64) explicitly.
12+
13+ ## Docker
14+ - Use Amazon Linux 2 or Amazon Linux 2023 base images to match Lambda runtimes.
15+ - Avoid installing unnecessary tools in the final layer output.
16+ - Ensure the output directory structure matches Lambda requirements exactly (` python/lib/pythonX.Y/site-packages ` ).
17+
18+ ## Python Dependencies
19+ - Use ` requirements.txt ` with pinned versions for reproducibility.
20+ - Separate build dependencies from runtime dependencies if necessary.
You can’t perform that action at this time.
0 commit comments