Skip to content

Commit

Permalink
fix(build): upgrade vercel builds to Node 20.x (#10890)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Jul 11, 2024
1 parent 5327f80 commit e5d4271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs-website/vercel-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ set -euxo pipefail

./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.
# 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.
# TODO: This process is extremely slow - ideally we should cache the built Python binary
# for reuse.

yum groupinstall "Development Tools" -y
yum erase openssl-devel -y
yum install openssl11 openssl11-devel libffi-devel bzip2-devel wget nodejs -y
yum install openssl openssl-devel libffi-devel bzip2-devel wget nodejs -y

wget https://www.python.org/ftp/python/3.10.11/Python-3.10.11.tgz
tar -xf Python-3.10.11.tgz
Expand All @@ -29,6 +32,3 @@ rm "$py3"
ln "$(which python3.10)" "$py3"
python3 --version

# Set up java version for gradle
yum install java-17-amazon-corretto
java --version
3 changes: 2 additions & 1 deletion metadata-ingestion/scripts/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ else
sqlite-devel \
xz-devel \
libxml2-devel \
libxslt-devel
libxslt-devel \
krb5-devel
else
$sudo_cmd apt-get update && $sudo_cmd apt-get install -y \
python3-ldap \
Expand Down

0 comments on commit e5d4271

Please sign in to comment.