Skip to content

Commit 8c1341c

Browse files
authored
Merge pull request #13 from fok666/gemini-config
feat: add configuration and style guide for Lambda layer builds
2 parents b6e4340 + 858310f commit 8c1341c

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.gemini/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

.gemini/styleguide.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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.

0 commit comments

Comments
 (0)