Skip to content

Commit

Permalink
Unholy mix of grpc_xds_k8s_install_test_driver.sh and grpc_xds_bazel_…
Browse files Browse the repository at this point in the history
…test_in_docker.sh
  • Loading branch information
sergiitk committed Jul 14, 2023
1 parent 2aa6d61 commit 1dedd35
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tools/run_tests/helper_scripts/prep_xds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ set -ex
# change to grpc repo root
cd "$(dirname "$0")/../../.."

sudo apt-get install -y python3-pip
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade setuptools
sudo python3 -m pip install --upgrade grpcio==1.31.0 grpcio-tools==1.31.0 protobuf google-api-python-client google-auth-httplib2 oauth2client xds-protos
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install --auto-remove "python3.10-venv"

VIRTUAL_ENV=$(mktemp -d)
python3 -m venv "${VIRTUAL_ENV}"
source "${VIRTUAL_ENV}/bin/activate"

python3 -m pip install --upgrade pip==19.3.1
# TODO(sergiitk): Unpin grpcio-tools when a version of xds-protos
# compatible with protobuf 4.X is uploaded to PyPi.
python3 -m pip install --upgrade grpcio grpcio-tools==1.48.1 google-api-python-client google-auth-httplib2 oauth2client xds-protos

# Prepare generated Python code.
TOOLS_DIR=tools/run_tests
Expand Down

0 comments on commit 1dedd35

Please sign in to comment.