File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 3
3
# directory used for deployment
4
4
export DEPLOY_DIR=lambda
5
5
6
- echo Creating deploy package
7
-
8
6
# make deployment directory and add lambda handler
9
7
mkdir -p $DEPLOY_DIR /lib
10
8
@@ -21,4 +19,4 @@ rsync -ax $PREFIX/share/proj $DEPLOY_DIR/share/
21
19
22
20
# zip up deploy package
23
21
cd $DEPLOY_DIR
24
- zip -ruq --symlinks ../lambda-deploy.zip ./
22
+ zip -ruq ../lambda-deploy.zip ./
Original file line number Diff line number Diff line change 3
3
# directory used for development
4
4
export DEPLOY_DIR=lambda
5
5
6
+ # make deployment directory and add lambda handler
7
+ mkdir -p $DEPLOY_DIR /lib
8
+
9
+ # copy libs
10
+ cp -P ${PREFIX} /lib/* .so* $DEPLOY_DIR /lib/
11
+ cp -P ${PREFIX} /lib64/libjpeg* .so* $DEPLOY_DIR /lib/
12
+
13
+ strip $DEPLOY_DIR /lib/* || true
14
+
15
+ # copy GDAL_DATA files over
16
+ mkdir -p $DEPLOY_DIR /share
17
+ rsync -ax $PREFIX /share/gdal $DEPLOY_DIR /share/
18
+ rsync -ax $PREFIX /share/proj $DEPLOY_DIR /share/
19
+
6
20
# Get Python version
7
21
PYVERSION=$( cat /root/.pyenv/version)
8
22
MAJOR=${PYVERSION%% .* }
You can’t perform that action at this time.
0 commit comments