-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlambda-dependencies.txt
69 lines (47 loc) · 1.7 KB
/
lambda-dependencies.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
https://www.geeksforgeeks.org/how-to-install-python-packages-for-aws-lambda-layers/
https://linuxhint.com/install-python-ubuntu-22-04/
Download ubuntu/aarch64 Docker image
-In the Terminal, do this, where 'wonderful_colden' is the ubuntu image name
docker exec -it wonderful_colden bash
-In the container, do this
rm -rf /layer
rm -f dependencies.zip
pip3 cache purge
mkdir -p /layer/python/lib/python3.9/site-packages
pip3 install datetime -t /layer/python/lib/python3.9/site-packages
pip3 install python-dateutil -t /layer/python/lib/python3.9/site-packages
pip3 install \
--platform manylinux2014_aarch64 \
--implementation cp \
--python 3.9 \
--only-binary=:all: --upgrade \
--target /layer/python/lib/python3.9/site-packages \
pyopenssl==22.1.0
pip3 install \
--platform manylinux2014_aarch64 \
--implementation cp \
--python 3.9 \
--only-binary=:all: --upgrade \
--target /layer/python/lib/python3.9/site-packages \
cryptography==38.0.4
pip3 install \
--platform manylinux2014_aarch64 \
--implementation cp \
--python 3.9 \
--only-binary=:all: --upgrade \
--target /layer/python/lib/python3.9/site-packages \
pandas
pip3 install \
--platform manylinux2014_aarch64 \
--implementation cp \
--python 3.9 \
--only-binary=:all: --upgrade \
--target /layer/python/lib/python3.9/site-packages \
fastparquet
pip3 install pysisu>=0.4.16 -t /layer/python/lib/python3.9/site-packages
pip3 install snowflake-connector-python==2.9.0 -t /layer/python/lib/python3.9/site-packages
cd /layer
zip -r /dependencies.zip *
exit
-In the Terminal, do this
docker cp wonderful_colden:dependencies.zip ~/Documents/sisudata/field/api2bi/