From 4e12d69eaf87c2becd43d4083ebd0011aa95a5aa Mon Sep 17 00:00:00 2001 From: Vitaly Terentyev Date: Tue, 17 Feb 2026 15:06:08 +0400 Subject: [PATCH 1/2] Add Apache Beam installation to Dockerfile --- playground/backend/containers/python/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playground/backend/containers/python/Dockerfile b/playground/backend/containers/python/Dockerfile index dc734fe34d2f..cec3fb3ad4aa 100644 --- a/playground/backend/containers/python/Dockerfile +++ b/playground/backend/containers/python/Dockerfile @@ -65,7 +65,7 @@ RUN cd /opt/playground/backend/kafka-emulator/ && tar -xvf kafka-emulator.tar && mv kafka-emulator/*.jar . && rmdir kafka-emulator/ &&\ mv beam-playground-kafka-emulator-*.jar beam-playground-kafka-emulator.jar RUN apt-get update && \ - apt install openjdk-17-jre-headless -y + apt install openjdk-17-jre-headless -y # Create a user group `appgroup` and a user `appuser` RUN groupadd --gid 20000 appgroup \ @@ -73,6 +73,8 @@ RUN groupadd --gid 20000 appgroup \ RUN mkdir -p /opt/playground/backend/executable_files/ +RUN pip install apache-beam[gcp,interactive]==$BEAM_VERSION + # Chown all required files to the `appuser`. RUN chown -R appuser:appgroup /opt/playground/backend/executable_files/ && chmod +x /entrypoint.sh From 84cac177fbcbf35f7dbe3e5a929ce252cac85030 Mon Sep 17 00:00:00 2001 From: Vitaly Terentyev Date: Wed, 18 Feb 2026 22:23:17 +0400 Subject: [PATCH 2/2] Install setuptools for playground cd examples --- .../infrastructure/cloudbuild/playground_cd_examples.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/playground/infrastructure/cloudbuild/playground_cd_examples.sh b/playground/infrastructure/cloudbuild/playground_cd_examples.sh index 410aae1249d3..b32fc942ad27 100644 --- a/playground/infrastructure/cloudbuild/playground_cd_examples.sh +++ b/playground/infrastructure/cloudbuild/playground_cd_examples.sh @@ -82,7 +82,7 @@ LogOutput "Input variables: BEAM_USE_WEBGRPC=$BEAM_USE_WEBGRPC DATASTORE_NAMESPACE=$DATASTORE_NAMESPACE FORCE_CD=$FORCE_CD" - + # Script starts in a clean environment in Cloud Build. Set minimal required environment variables if [ -z "$PATH" ]; then @@ -110,6 +110,7 @@ apt install -y python3.10-venv > /dev/null 2>&1 LogOutput "Installing Python packages from beam/playground/infrastructure/requirements.txt" cd $BEAM_ROOT_DIR pip install -r playground/infrastructure/requirements.txt +pip install setuptools LogOutput "Looking for files changed by the merge commit $MERGE_COMMIT" git fetch origin $MERGE_COMMIT @@ -130,7 +131,7 @@ do LogOutput "FORCE_CD is true. Example deployment for SDK_${sdk^^} is forced" example_has_changed="true" else - LogOutput "------------------Starting checker.py for SDK_${sdk^^}------------------" + LogOutput "------------------Starting checker.py for SDK_${sdk^^}------------------" cd $BEAM_ROOT_DIR/playground/infrastructure python3 checker.py \ --verbose \ @@ -159,7 +160,7 @@ do eval "check_${sdk}_passed"="true" continue fi - + cd $BEAM_ROOT_DIR/playground/infrastructure LogOutput "Running ci_cd.py for SDK $sdk" @@ -187,4 +188,4 @@ do exit 1 fi done -exit 0 \ No newline at end of file +exit 0