Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Changes from 4 commits
Commits
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: 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
Loading