File tree 4 files changed +13
-20
lines changed
4 files changed +13
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- set -e
3
+ set -x
4
4
5
5
cd deps
6
6
source versions
7
7
8
8
# Clean up old files
9
9
rm -f aws-lambda-cpp-* .tar.gz && rm -f curl-* .tar.gz
10
10
11
+
12
+ LIBCURL=" curl-${CURL_MAJOR_VERSION} .${CURL_MINOR_VERSION} .${CURL_PATCH_VERSION} "
13
+
11
14
# Grab Curl
12
- wget -c " https://github.com/curl/curl/releases/download/curl-${CURL_MAJOR_VERSION} _${CURL_MINOR_VERSION} _${CURL_PATCH_VERSION} /curl-${CURL_MAJOR_VERSION} .${CURL_MINOR_VERSION} .${CURL_PATCH_VERSION} .tar.gz"
15
+ wget -c " https://github.com/curl/curl/releases/download/curl-${CURL_MAJOR_VERSION} _${CURL_MINOR_VERSION} _${CURL_PATCH_VERSION} /$LIBCURL .tar.gz" -O - | tar -xz
16
+ (
17
+ cd $LIBCURL && \
18
+ patch -p1 < ../patches/libcurl-configure-template.patch
19
+ )
20
+
21
+ tar -czf $LIBCURL .tar.gz $LIBCURL --no-same-owner && rm -rf $LIBCURL
13
22
14
23
# Grab aws-lambda-cpp
15
24
wget -c https://github.com/awslabs/aws-lambda-cpp/archive/v$AWS_LAMBDA_CPP_RELEASE .tar.gz -O - | tar -xz
@@ -25,5 +34,5 @@ wget -c https://github.com/awslabs/aws-lambda-cpp/archive/v$AWS_LAMBDA_CPP_RELEA
25
34
)
26
35
27
36
# # Pack again and remove the folder
28
- tar -czvf aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE .tar.gz aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE --no-same-owner && \
37
+ tar -czf aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE .tar.gz aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE --no-same-owner && \
29
38
rm -rf aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE
Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ RUN mkdir -p ${RIC_BUILD_DIR}
31
31
# Copy function code and Runtime Interface Client .tgz
32
32
WORKDIR ${RIC_BUILD_DIR}
33
33
COPY . .
34
- RUN make init patch-libcurl-configure-template && \
35
- make build test && \
34
+ RUN make init build test && \
36
35
mv ./dist/awslambdaric-*.tar.gz ./dist/awslambdaric-test.tar.gz
37
36
38
37
# Include global args in this stage of the build
You can’t perform that action at this time.
0 commit comments