这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
35b8ebc
adding boto3 as dependency
LeonhardFS Nov 3, 2021
72b4cf3
dev
LeonhardFS Nov 3, 2021
ee92a2a
role creation wip
LeonhardFS Nov 3, 2021
a924593
more dev
LeonhardFS Nov 3, 2021
6120e20
wip
LeonhardFS Nov 3, 2021
1692316
new s3 scratch space function
LeonhardFS Nov 3, 2021
151062d
cmake update
LeonhardFS Nov 3, 2021
d4fc3e9
fix
LeonhardFS Nov 3, 2021
462cf7c
fix
LeonhardFS Nov 3, 2021
b4240d4
command that works
LeonhardFS Nov 3, 2021
80b3136
dev notebook
LeonhardFS Nov 4, 2021
4670168
Merge branch 'lambda' of github.com:LeonhardFS/tuplex-public into lambda
LeonhardFS Nov 4, 2021
f1f184f
updated docker script to build lambda
LeonhardFS Nov 4, 2021
99a8d1c
Merge branch 'lambda' of github.com:LeonhardFS/tuplex-public into lambda
LeonhardFS Nov 4, 2021
95bd0fd
wip lambda upload
LeonhardFS Nov 4, 2021
21f7330
changes
LeonhardFS Nov 4, 2021
df32b7e
lambda upload works now
LeonhardFS Nov 4, 2021
d1fa34b
lambda setup refactor
LeonhardFS Nov 4, 2021
581a7bc
fixes
LeonhardFS Nov 4, 2021
829ce3d
reflection.py now warns for time magic
LeonhardFS Nov 4, 2021
ed7452a
more lambda stuff
LeonhardFS Nov 4, 2021
c66f7cf
example update
LeonhardFS Nov 4, 2021
44f028e
updating PCRE2 link
LeonhardFS Nov 5, 2021
d9b03ef
changing s.t. code is not read-only anymore so antlr4 can work
LeonhardFS Nov 5, 2021
02e5a49
update
LeonhardFS Nov 5, 2021
a2892c1
docker update
LeonhardFS Nov 5, 2021
ee2858f
docker ci update
LeonhardFS Nov 5, 2021
25fbb23
new python packaging file
LeonhardFS Nov 5, 2021
94badf1
finding python location
LeonhardFS Nov 5, 2021
ed1968d
still some work todo on compressing everything better
LeonhardFS Nov 5, 2021
4705694
script update
LeonhardFS Nov 8, 2021
d783da4
script fixes
LeonhardFS Nov 8, 2021
251056e
zip update
LeonhardFS Nov 8, 2021
4a836b7
reorg
LeonhardFS Nov 8, 2021
67ace84
script update
LeonhardFS Nov 8, 2021
44c6fdd
fix
LeonhardFS Nov 8, 2021
4729908
fix
LeonhardFS Nov 8, 2021
7b799f6
adding test for proper pyobject type decoding
LeonhardFS Nov 8, 2021
f405762
change target
LeonhardFS Nov 8, 2021
c88cf94
gh action update to build lambda runner automatically
LeonhardFS Nov 8, 2021
7d1b652
incl. runner zip
LeonhardFS Nov 8, 2021
2bde510
use absolute path to be 100% sure it gets packaged
LeonhardFS Nov 8, 2021
b7fefd5
wheel test
LeonhardFS Nov 8, 2021
63b9643
env fix for cibuildwheel
LeonhardFS Nov 8, 2021
2c9d33e
path fix
LeonhardFS Nov 8, 2021
9b66bf8
another fix for temp path?
LeonhardFS Nov 9, 2021
110b58a
more copying
LeonhardFS Nov 9, 2021
3beef71
excluding musllinux
LeonhardFS Nov 9, 2021
faf4233
auto invoke fix
LeonhardFS Nov 9, 2021
43c3c53
ca fixes
LeonhardFS Nov 9, 2021
fa8b73b
typo fix
LeonhardFS Nov 9, 2021
ac3bce5
default update
LeonhardFS Nov 9, 2021
24b6a84
debug fixes
LeonhardFS Nov 10, 2021
393144f
colab setup fix
LeonhardFS Nov 10, 2021
67c8a3b
glab
LeonhardFS Nov 10, 2021
1a068fb
more network stuff
LeonhardFS Nov 10, 2021
d5c2680
bugfix for boolean options
LeonhardFS Nov 10, 2021
229f8e4
docker notes...
LeonhardFS Nov 10, 2021
6627d85
install openssl backed curl
LeonhardFS Nov 11, 2021
a0f9413
fixed a couple contextoptions -> python conversions
LeonhardFS Nov 11, 2021
3928018
experimental logging to python connection
LeonhardFS Nov 11, 2021
a5d231c
more experimental logging
LeonhardFS Nov 11, 2021
b0166ee
logging wip
LeonhardFS Nov 11, 2021
2148dbf
another attempt
LeonhardFS Nov 11, 2021
d7d4fa6
more logging fixes
LeonhardFS Nov 11, 2021
4f23efd
typo fi
LeonhardFS Nov 11, 2021
9caefbe
C++ logging output redirected to Python
LeonhardFS Nov 11, 2021
22f3af8
cleanup for logging
LeonhardFS Nov 11, 2021
eae3c5d
remove curl
LeonhardFS Nov 12, 2021
0bc7066
add info on adjusting level
LeonhardFS Nov 12, 2021
1a58ab9
deactivating https in lambda client
LeonhardFS Nov 12, 2021
3308373
more logging stuff
LeonhardFS Nov 12, 2021
20afe95
compile fix
LeonhardFS Nov 12, 2021
41668a8
removing things
LeonhardFS Nov 12, 2021
8046513
try fixing http issue in aws sdk
LeonhardFS Nov 12, 2021
838d347
more logging
LeonhardFS Nov 12, 2021
881a805
super verbose aws
LeonhardFS Nov 12, 2021
b65b239
more things
LeonhardFS Nov 12, 2021
9bb160e
updating docker
LeonhardFS Nov 12, 2021
43c4fb0
iso8601 dependency
LeonhardFS Nov 12, 2021
e3a67bf
docker update
LeonhardFS Nov 12, 2021
728121c
setting better ld_library_path for auditwheel
LeonhardFS Nov 12, 2021
35aeac2
update
LeonhardFS Nov 12, 2021
07b3aab
passing env to cmake in setup.py
LeonhardFS Nov 15, 2021
bb0dbdf
adding fincurl.cmake because shipped one does not take hints
LeonhardFS Nov 15, 2021
5483c0a
overwriting curl in /usr/lib64
LeonhardFS Nov 15, 2021
527a34a
replacing old curl with newer one on centos
LeonhardFS Nov 15, 2021
5a2c236
one more docker update to avoid having a curl clash
LeonhardFS Nov 15, 2021
5669a7f
rename master to main for gtest
LeonhardFS Nov 15, 2021
5e05b10
fixes
LeonhardFS Nov 15, 2021
c6dbb1f
update develop command to have debug/relwithdebinfo info
LeonhardFS Nov 15, 2021
4202c1f
cleanup
LeonhardFS Nov 15, 2021
c82bd6a
speed up credential retrieval through smarter chain
LeonhardFS Nov 15, 2021
4414cdb
fix
LeonhardFS Nov 16, 2021
2405fbc
refactored credentials for S3, using faster way to infer region. No m…
LeonhardFS Nov 16, 2021
a90da21
include fix
LeonhardFS Nov 16, 2021
c75bdf2
network settings also applied to S3 client now
LeonhardFS Nov 16, 2021
3714b0b
more cleanup
LeonhardFS Nov 16, 2021
d81a504
changed options, better mongod logging, flushing to python during exe…
LeonhardFS Nov 16, 2021
f5257a3
enabling orc support in wheel script
LeonhardFS Nov 16, 2021
67c8b84
enabling orc in lambda too
LeonhardFS Nov 16, 2021
d4c1146
fix
LeonhardFS Nov 16, 2021
30f7fb4
wip
LeonhardFS Nov 16, 2021
51b6b96
logging fix
LeonhardFS Nov 16, 2021
47e1cd2
debug print
LeonhardFS Nov 16, 2021
d56f3c8
Merge branch 'master' into lambda
LeonhardFS Nov 16, 2021
cc7cfa5
typo
LeonhardFS Nov 16, 2021
0fcc673
fix
LeonhardFS Nov 16, 2021
a6ef865
remove trace
LeonhardFS Nov 17, 2021
1d4802c
increfs
LeonhardFS Nov 17, 2021
bfaa41d
antlr dir fix
LeonhardFS Nov 17, 2021
fad08d1
fix
LeonhardFS Nov 17, 2021
47cd4bd
antlr update
LeonhardFS Nov 17, 2021
a2d67cd
fix
LeonhardFS Nov 17, 2021
1ff1273
updated LambdaContext helper
LeonhardFS Nov 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
run: bash ./scripts/ci/setup-macos.sh
shell: bash

- name: Build Lambda runner
run: docker pull registry-1.docker.io/tuplex/ci:latest && bash ./scripts/create_lambda_zip.sh && mkdir -p ./tuplex/python/tuplex/other && cp /home/runner/work/tuplex/tuplex/build-lambda/tplxlam.zip ./tuplex/python/tuplex/other
shell: bash

- name: Build wheels
uses: pypa/cibuildwheel@v1.11.1.post1
env:
Expand All @@ -53,8 +57,9 @@ jobs:
# only build python 3.9 on macos

# production version:
# no musllinux yet, no 3.10 support yet.
CIBW_BUILD: "cp3{7,8,9}-*"
CIBW_SKIP: "cp3{5,6,7,8}-macosx* pp*"
CIBW_SKIP: "cp3{5,6,7,8}-macosx* pp* *-musllinux_*"

## for debugging purposes (only linux build)
#CIBW_BUILD: "cp38-*"
Expand All @@ -63,6 +68,9 @@ jobs:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
CIBW_BEFORE_BUILD_MACOS: ./scripts/ci/setup-macos.sh

# set this environment variable to include the Lambda zip from the previous build step
CIBW_ENVIRONMENT: TUPLEX_LAMBDA_ZIP='./tuplex/python/tuplex/other/tplxlam.zip'

- name: reorganize files
run: touch ./scripts/dummy.version && cp ./scripts/*.version ./wheelhouse && cp ./scripts/test_pypi.sh ./wheelhouse

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ python/tuplex.egg-info/
tuplex.egg-info/

wheelhouse/
*.zip
10 changes: 8 additions & 2 deletions scripts/build_wheel_linux.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# (c) 2021 Tuplex team
# this script invokes the cibuildwheel process with necessary env variables to build the wheel for linux/docker

# check from where script is invoked
Expand All @@ -17,23 +18,28 @@ rm -rf tuplex/python/tuplex/libexec/tuplex*.so
# CIBUILDWHEEL CONFIGURATION
export CIBUILDWHEEL=1
export TUPLEX_BUILD_ALL=0
export CIBW_ARCHS_LINUX=native
export CIBW_ARCHS_LINUX=x86_64
export CIBW_MANYLINUX_X86_64_IMAGE='registry-1.docker.io/tuplex/ci:latest'

export CIBW_ENVIRONMENT="TUPLEX_LAMBDA_ZIP='./tuplex/other/tplxlam.zip' CMAKE_ARGS='-DBUILD_WITH_ORC=ON' LD_LIBRARY_PATH=/usr/local/lib:/opt/lib"

# Use the following line to build only python3.9 wheel
export CIBW_BUILD="cp39-*"


# For Google Colab compatible wheel, use the following:
export CIBW_BUILD="cp37-*"
export CIBW_ARCHS_LINUX="x86_64"

# do not build musllinux yet
export CIBW_SKIP="*-musllinux_*"

# to test the others from 3.7-3.9, use these two lines:
#export CIBW_BUILD="cp3{7,8,9}-*"
#export CIBW_SKIP="cp3{5,6,7,8}-macosx* pp*"

export CIBW_BUILD_VERBOSITY=3
export CIBW_PROJECT_REQUIRES_PYTHON=">=3.7"

cibuildwheel --platform linux .

popd > /dev/null
Expand Down
46 changes: 46 additions & 0 deletions scripts/create_lambda_zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
# (c) 2021 Tuplex team

# this script creates a deployable AWS Lambda zip package using docker

# check from where script is invoked
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"

echo "Executing buildwheel script located in $CWD"
pushd $CWD > /dev/null
cd .. # go to root of repo

# start code here...

LOCAL_BUILD_FOLDER=build-lambda
SRC_FOLDER=tuplex
DOCKER_IMAGE=tuplex/ci

# convert to absolute paths
get_abs_filename() {
# $1 : relative filename
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
}

LOCAL_BUILD_FOLDER=$(get_abs_filename $LOCAL_BUILD_FOLDER)
SRC_FOLDER=$(get_abs_filename $SRC_FOLDER)
echo "Tuplex source: $SRC_FOLDER"
echo "Building lambda in: $LOCAL_BUILD_FOLDER"

mkdir -p $LOCAL_BUILD_FOLDER

echo "starting docker (this might take a while...)"

# start docker & volume & create awslambda target with correct settings
# the python version to use for lambda is in /opt/lambda-python/bin/python3.8
# In order to kick-off the build within the docker, use the following two commands:
# export LD_LIBRARY_PATH=/opt/lambda-python/lib:$LD_LIBRARY_PATH
# cmake -DBUILD_FOR_LAMBDA=ON -DBUILD_WITH_AWS=ON -DBOOST_ROOT=/opt/boost/python3.8/ -GNinja -DPYTHON3_EXECUTABLE=/opt/lambda-python/bin/python3.8 /code/tuplex
# --> The preload is necessary as a shared version of python is used.
# just use tplxlam as target, then run custom python script to package contents up.

docker run --name lambda --rm -v $SRC_FOLDER:/code/tuplex -v $LOCAL_BUILD_FOLDER:/build tuplex/ci bash -c "export LD_LIBRARY_PATH=/opt/lambda-python/lib:\$LD_LIBRARY_PATH && /opt/lambda-python/bin/python3.8 -m pip install cloudpickle numpy && cd /build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_FOR_LAMBDA=ON -DBUILD_WITH_AWS=ON -DBUILD_WITH_ORC=ON -DPYTHON3_EXECUTABLE=/opt/lambda-python/bin/python3.8 -DBOOST_ROOT=/opt/boost/python3.8/ -GNinja /code/tuplex && cmake --build . --target tplxlam && python3.8 /code/tuplex/python/zip_cc_runtime.py --input /build/dist/bin/tplxlam --runtime /build/dist/bin/tuplex_runtime.so --python /opt/lambda-python/bin/python3.8 --output /build/tplxlam.zip"
echo "docker command run, zipped Lambda file can be found in: ${LOCAL_BUILD_FOLDER}/tplxlam.zip"

# end code here...
popd > /dev/null
8 changes: 4 additions & 4 deletions scripts/docker/benchmark/install_tuplex_reqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ git clone https://github.com/awslabs/aws-lambda-cpp.git && \

# pcre2
cd /tmp &&
curl -O https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip &&
unzip pcre2-10.34.zip &&
rm pcre2-10.34.zip &&
pushd pcre2-10.34 &&
curl -LO https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.zip &&
unzip pcre2-10.39.zip &&
rm pcre2-10.39.zip &&
pushd pcre2-10.39 &&
./configure --prefix=/opt --enable-jit=auto --disable-shared CFLAGS="-O2 -fPIC" && make -j 32 && make install
popd

Expand Down
10 changes: 10 additions & 0 deletions scripts/docker/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ADD install_llvm9.sh /opt/sbin/install_llvm9.sh
# cmake not required to be installed, because recent image has cmake 3.20
# it uses gcc 9.3.1

# CentOS/RHEL does not use OpenSSL for the system curl, however AWSSDK must use OpenSSL backed curl.
ADD install_curl.sh /opt/sbin/install_curl.sh

# image is centos based, so use yum as package manager
# --> install_llvm9 uses most recent 9 release.
Expand All @@ -29,6 +31,9 @@ RUN yum install -y wget
# llvm-9 on yum repo might be broken, use manually built llvm
RUN bash /opt/sbin/install_llvm9.sh

# install curl now
RUN bash /opt/sbin/install_curl.sh

# install boost-python for 3.7, 3.8, 3.9, 3.10
RUN bash /opt/sbin/install_boost.sh /opt/python/cp37-cp37m/bin/python3.7 /opt/boost/python3.7
RUN bash /opt/sbin/install_boost.sh /opt/python/cp38-cp38//bin/python3.8 /opt/boost/python3.8
Expand All @@ -52,11 +57,16 @@ RUN python3.10 -m pip install cloudpickle # numpy # pandas
# tuplex requirements
RUN bash /opt/sbin/install_tuplex_reqs.sh

# add lambda-specific Python 3.8 (full python install)
ADD install_lambda_python.sh /opt/sbin/install_lambda_python.sh
RUN bash /opt/sbin/install_lambda_python.sh

## MongoDB community edition for WebUI testing
ADD mongodb-org-5.0.repo /etc/yum.repos.d/mongodb-org-5.0.repo
RUN yum update -y && yum install -y mongodb-org

# replace curl again with recent version to be 100% everything worked properly.
RUN bash /opt/sbin/install_curl.sh

# remove all the tmp stuff
RUN rm -rf /tmp/*
Expand Down
29 changes: 29 additions & 0 deletions scripts/docker/ci/install_curl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

# TODO: CentOS/RHEL does not support AWS SDK. It's triggering a bug in NSS which is the SSL lib used in CentOS/RHEL.
# cf. https://github.com/aws/aws-sdk-cpp/issues/1491

# Steps to solve:
# 1.) install recent OpenSSL
# 2.) build Curl against it
# 3.) Compile AWS SDK with this curl version.
# cf. https://geekflare.com/curl-installation/ for install guide

# other mentions of the NSS problem:
# https://curl.se/mail/lib-2016-08/0119.html
# https://bugzilla.mozilla.org/show_bug.cgi?id=1297397

# select here which curl version to use
CURL_VERSION=7.80.0

# Alternative could be to also just install via cmake, i.e. from repo https://github.com/curl/curl.

# Main issue is, that on CentOS an old curl compiled with NSS is preinstalled.
# ==> remove!
# i.e., via rm -rf /usr/lib64/libcurl*

NUM_PROCS=$(( 1 * $( egrep '^processor[[:space:]]+:' /proc/cpuinfo | wc -l ) ))

cd /tmp && yum update -y && yum install wget gcc openssl-devel -y && rm -rf /usr/lib64/libcurl* && \
wget --no-check-certificate https://curl.se/download/curl-${CURL_VERSION}.tar.gz && tar xf curl-${CURL_VERSION}.tar.gz && \
cd curl-${CURL_VERSION} && ./configure --with-openssl --without-nss --prefix=/usr/ --libdir=/usr/lib64 && make -j ${NUM_PROCS} && make install && ldconfig
42 changes: 42 additions & 0 deletions scripts/docker/ci/install_lambda_python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
# to build the lambda executor need to embed python, therefore create full version below

export CFLAGS=-I/usr/include/openssl

# select python version, Lambda uses 3.8.11
PYTHON3_VERSION=3.8.11
PYTHON3_MAJMIN=${PYTHON3_VERSION%.*}

# from https://bugs.python.org/issue36044
# change tasks, because hangs at test_faulthandler...
export PROFILE_TASK=-m test.regrtest --pgo \
test_collections \
test_dataclasses \
test_difflib \
test_embed \
test_float \
test_functools \
test_generators \
test_int \
test_itertools \
test_json \
test_logging \
test_long \
test_ordered_dict \
test_pickle \
test_pprint \
test_re \
test_set \
test_statistics \
test_struct \
test_tabnanny \
test_xml_etree

set -ex && cd /tmp && wget https://www.python.org/ftp/python/${PYTHON3_VERSION}/Python-${PYTHON3_VERSION}.tgz && tar xf Python-${PYTHON3_VERSION}.tgz \
&& cd Python-${PYTHON3_VERSION} && ./configure --with-lto --prefix=/opt/lambda-python --enable-optimizations --enable-shared \
&& make -j $(( 1 * $( egrep '^processor[[:space:]]+:' /proc/cpuinfo | wc -l ) )) \
&& make altinstall

# install cloudpickle numpy for Lambda python
export LD_LIBRARY_PATH=/opt/lambda-python/lib:$LD_LIBRARY_PATH
/opt/lambda-python/bin/python${PYTHON3_MAJMIN} -m pip install cloudpickle numpy tqdm
21 changes: 12 additions & 9 deletions scripts/docker/ci/install_tuplex_reqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# everything will be installed to /opt

# Tuplex dependencies
# compile dependencies yum stylke
# compile dependencies yum style

yum install -y libedit-devel libzip-devel \
pkgconfig openssl-devel libxml2-devel libcurl-devel zlib-devel \
pkgconfig openssl-devel libxml2-devel zlib-devel \
uuid libuuid-devel libffi-devel graphviz-devel \
gflags-devel ncurses-devel \
awscli java-1.8.0-openjdk-devel libyaml-devel file-devel
awscli java-1.8.0-openjdk-devel libyaml-devel file-devel ninja-build zip unzip

# LLVM9 is broken on Ubuntu 20.04, hence manually install...

Expand Down Expand Up @@ -63,10 +63,13 @@ popd &&
cd - || echo "ANTLR4 runtime failed"

# AWS SDK
# tag 1.9.142?
# => note in 1.9.134/135 there has been a renaming of cJSON symbols -> this requires linking/renaming. cf. https://github.com/aws/aws-sdk-cpp/commit/2848c4571c94b03bc558378440f091f2017ef7d3
# note for centos7 there's an issue with SSL. Either use aws sdk with -DBUILD_DEPS=ON/-DUSE_OPENSSL=OFF. or force -DUSE_OPENSSL=ON.
cd /tmp &&
git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git &&
cd aws-sdk-cpp && git checkout tags/1.9.39 && mkdir build && pushd build &&
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DENABLE_UNITY_BUILD=ON -DCPP_STANDARD=14 -DBUILD_SHARED_LIBS=OFF -DBUILD_ONLY="s3;core;lambda;transfer" -DCMAKE_INSTALL_PREFIX=/opt .. &&
cd aws-sdk-cpp && git checkout tags/1.9.133 && mkdir build && pushd build &&
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_OPENSSL=ON -DENABLE_TESTING=OFF -DENABLE_UNITY_BUILD=ON -DCPP_STANDARD=14 -DBUILD_SHARED_LIBS=OFF -DBUILD_ONLY="s3;core;lambda;transfer" -DCMAKE_INSTALL_PREFIX=/opt .. &&
make -j32 &&
make install &&
popd &&
Expand All @@ -84,10 +87,10 @@ git clone https://github.com/awslabs/aws-lambda-cpp.git && \

# pcre2
cd /tmp &&
curl -O https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip &&
unzip pcre2-10.34.zip &&
rm pcre2-10.34.zip &&
pushd pcre2-10.34 &&
curl -LO https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.zip &&
unzip pcre2-10.39.zip &&
rm pcre2-10.39.zip &&
pushd pcre2-10.39 &&
./configure --prefix=/opt --enable-jit=auto --disable-shared CFLAGS="-O2 -fPIC" && make -j 32 && make install
popd

Expand Down
8 changes: 4 additions & 4 deletions scripts/ubuntu1804/install_reqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ git clone https://github.com/awslabs/aws-lambda-cpp.git && \

# pcre2
cd /tmp &&
curl -O https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip &&
unzip pcre2-10.34.zip &&
rm pcre2-10.34.zip &&
pushd pcre2-10.34 &&
curl -LO https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.zip &&
unzip pcre2-10.39.zip &&
rm pcre2-10.39.zip &&
pushd pcre2-10.39 &&
./configure --prefix=/opt --enable-jit=auto --disable-shared CFLAGS="-O2 -fPIC" && make -j 32 && make install
popd

Expand Down
8 changes: 4 additions & 4 deletions scripts/ubuntu2004/install_reqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ git clone https://github.com/awslabs/aws-lambda-cpp.git && \

# pcre2
cd /tmp &&
curl -O https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip &&
unzip pcre2-10.34.zip &&
rm pcre2-10.34.zip &&
pushd pcre2-10.34 &&
curl -LO https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.zip &&
unzip pcre2-10.39.zip &&
rm pcre2-10.39.zip &&
pushd pcre2-10.39 &&
./configure --prefix=/opt --enable-jit=auto --disable-shared CFLAGS="-O2 -fPIC" && make -j 32 && make install
popd

Expand Down
Loading