aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex <git@ajschof.me>2024-09-03 16:09:52 +0100
committerGitHub <noreply@github.com>2024-09-03 16:09:52 +0100
commit06e0727d554b08c4be3db954acb4d281a9146712 (patch)
tree4152f9efe54364a5d6a6cc969befb6cea9015a5b /scripts
parentcfe2a5fbc005d3eb766e788ea063f73c70bdca53 (diff)
parent256e4a2d4cb56814d3a87e89895f5954d148fd5d (diff)
downloadde-project-bentley-06e0727d554b08c4be3db954acb4d281a9146712.tar.gz
de-project-bentley-06e0727d554b08c4be3db954acb4d281a9146712.zip
Merge pull request #117 from ajschofield/development
final pr: merge development into main branch
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make_layer_zip.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/make_layer_zip.sh b/scripts/make_layer_zip.sh
index eabe301..7f64873 100755
--- a/scripts/make_layer_zip.sh
+++ b/scripts/make_layer_zip.sh
@@ -1,8 +1,17 @@
-# Description: Make the zip file for the layer
+# Description: Make the zip file for the layer for the extract lambda function
cd "$(dirname "$0")/.."
+
+# Layer 01
+mkdir -p python/lib/python3.11/site-packages
+pip3 install --upgrade -r requirements_lambda_01.txt -t python/lib/python3.11/site-packages
+rm layer_01.zip
+zip -r layer_01.zip python
+rm -r python/
+
+# Layer 02
mkdir -p python/lib/python3.11/site-packages
-pip3 install --upgrade -r requirements.txt -t python/lib/python3.11/site-packages
-rm layer.zip
-zip -r layer.zip python
+pip3 install --upgrade -r requirements_lambda_02.txt -t python/lib/python3.11/site-packages
+rm layer_02.zip
+zip -r layer_02.zip python
rm -r python/
git.ajschof.me — hosted by ajschofield — powered by cgit