fix(build): upgrade vercel builds to Node 20.x (#10890)

This commit is contained in:
Harshal Sheth 2024-07-11 13:23:57 -07:00 committed by GitHub
parent 5327f80cf7
commit e5d42715f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -4,6 +4,10 @@ set -euxo pipefail
./metadata-ingestion/scripts/install_deps.sh ./metadata-ingestion/scripts/install_deps.sh
# Set up java version for gradle
yum install java-17-amazon-corretto -y
java --version
# Build python from source. # Build python from source.
# Amazon Linux 2 has Python 3.8, but it's version of OpenSSL is super old and hence it # Amazon Linux 2 has Python 3.8, but it's version of OpenSSL is super old and hence it
# doesn't work with the packages we use. As such, we have to build Python from source. # doesn't work with the packages we use. As such, we have to build Python from source.
@ -11,8 +15,7 @@ set -euxo pipefail
# for reuse. # for reuse.
yum groupinstall "Development Tools" -y yum groupinstall "Development Tools" -y
yum erase openssl-devel -y yum install openssl openssl-devel libffi-devel bzip2-devel wget nodejs -y
yum install openssl11 openssl11-devel libffi-devel bzip2-devel wget nodejs -y
wget https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tgz wget https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tgz
tar -xf Python-3.10.11.tgz tar -xf Python-3.10.11.tgz
@ -29,6 +32,3 @@ rm "$py3"
ln "$(which python3.10)" "$py3" ln "$(which python3.10)" "$py3"
python3 --version python3 --version
# Set up java version for gradle
yum install java-17-amazon-corretto
java --version

View File

@ -18,7 +18,8 @@ else
sqlite-devel \ sqlite-devel \
xz-devel \ xz-devel \
libxml2-devel \ libxml2-devel \
libxslt-devel libxslt-devel \
krb5-devel
else else
$sudo_cmd apt-get update && $sudo_cmd apt-get install -y \ $sudo_cmd apt-get update && $sudo_cmd apt-get install -y \
python3-ldap \ python3-ldap \