We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0157a0 commit 7542cbfCopy full SHA for 7542cbf
shell-scripts/run_function.sh
@@ -5,6 +5,7 @@ LAMBDA_DIR=lambda
5
BUILD_DIR=.build
6
EXECUTABLE_NAME=HelloSwiftLambda # must be the same as in Package.swift
7
LAMBDA_ZIP=function.zip
8
+BUILD_TYPE=debug
9
10
which docker > /dev/null
11
if [ ! $? ];
@@ -13,6 +14,12 @@ then
13
14
exit -1
15
fi
16
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
+
23
# Pull the latest version of the official swift containers
24
docker pull amazonlinux:2018.03
25
0 commit comments