Skip to content

Commit 7542cbf

Browse files
author
Stormacq, Sebastien
committed
ensure binaries are present in LAMBDA DIR
1 parent b0157a0 commit 7542cbf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shell-scripts/run_function.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LAMBDA_DIR=lambda
55
BUILD_DIR=.build
66
EXECUTABLE_NAME=HelloSwiftLambda # must be the same as in Package.swift
77
LAMBDA_ZIP=function.zip
8+
BUILD_TYPE=debug
89

910
which docker > /dev/null
1011
if [ ! $? ];
@@ -13,6 +14,12 @@ then
1314
exit -1
1415
fi
1516

17+
# Copying runtime files to lambda dir
18+
echo "Packaging"
19+
mkdir $LAMBDA_DIR 2>/dev/null # create the directory, silently fails when it already exists
20+
cp ./shell-scripts/bootstrap $LAMBDA_DIR
21+
cp $BUILD_DIR/x86_64-unknown-linux/$BUILD_TYPE/$EXECUTABLE_NAME $LAMBDA_DIR
22+
1623
# Pull the latest version of the official swift containers
1724
docker pull amazonlinux:2018.03
1825

0 commit comments

Comments
 (0)