Skip to content

Commit 4c59dbf

Browse files
preearorcarlzogh
andauthored
Update Curl version to 7.77.0, change libcurl distribution to tarball (aws#249)
Co-authored-by: Carl Zogheib <[email protected]>
1 parent e08d3be commit 4c59dbf

File tree

3,254 files changed

+11
-645317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,254 files changed

+11
-645317
lines changed

aws-lambda-java-runtime-interface-client/src/main/jni/Dockerfile.glibc

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# we use centos 7 to build against glibc 2.17
22
FROM centos:7
33

4+
ARG CURL_VERSION
5+
46
# Add Corretto repository
57
RUN rpm --import https://yum.corretto.aws/corretto.key && \
68
curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
@@ -22,7 +24,8 @@ RUN yum install -y \
2224
java-1.8.0-amazon-corretto-devel
2325

2426
# Install curl dependency
25-
ADD ./deps/curl-* /src/deps/curl
27+
COPY ./deps/curl-$CURL_VERSION.tar.gz /src/deps/
28+
RUN tar xzf /src/deps/curl-$CURL_VERSION.tar.gz -C /src/deps && mv /src/deps/curl-$CURL_VERSION /src/deps/curl
2629
WORKDIR /src/deps/curl
2730
RUN ./configure \
2831
--prefix $(pwd)/../artifacts \

aws-lambda-java-runtime-interface-client/src/main/jni/Dockerfile.musl

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM alpine:3
22

3+
ARG CURL_VERSION
4+
35
# Add Corretto repository
46
RUN wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub && \
57
echo "https://apk.corretto.aws/" >> /etc/apk/repositories
@@ -16,7 +18,8 @@ RUN apk update && \
1618
perl
1719

1820
# Install curl dependency
19-
ADD ./deps/curl-* /src/deps/curl
21+
COPY ./deps/curl-$CURL_VERSION.tar.gz /src/deps/
22+
RUN tar xzf /src/deps/curl-$CURL_VERSION.tar.gz -C /src/deps && mv /src/deps/curl-$CURL_VERSION /src/deps/curl
2023
WORKDIR /src/deps/curl
2124
RUN ./configure \
2225
--prefix $(pwd)/../artifacts \

aws-lambda-java-runtime-interface-client/src/main/jni/build-jni-lib.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ set -euo pipefail
55

66
SRC_DIR=$(dirname "$0")
77
DST_DIR=${1}
8+
CURL_VERSION=7.77.0
89

910
# compile the native library
10-
docker build -f "${SRC_DIR}/Dockerfile.glibc" -t lambda-java-jni-lib-glibc "${SRC_DIR}"
11+
docker build -f "${SRC_DIR}/Dockerfile.glibc" --build-arg CURL_VERSION=${CURL_VERSION} -t lambda-java-jni-lib-glibc "${SRC_DIR}"
1112
docker run --rm --entrypoint /bin/cat lambda-java-jni-lib-glibc /src/aws-lambda-runtime-interface-client.so > "${DST_DIR}"/classes/aws-lambda-runtime-interface-client.glibc.so
1213

13-
docker build -f "${SRC_DIR}/Dockerfile.musl" -t lambda-java-jni-lib-musl "${SRC_DIR}"
14+
docker build -f "${SRC_DIR}/Dockerfile.musl" --build-arg CURL_VERSION=${CURL_VERSION} -t lambda-java-jni-lib-musl "${SRC_DIR}"
1415
docker run --rm --entrypoint /bin/cat lambda-java-jni-lib-musl /src/aws-lambda-runtime-interface-client.so > "${DST_DIR}"/classes/aws-lambda-runtime-interface-client.musl.so
1516

0 commit comments

Comments
 (0)