File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
backend/containers/python
infrastructure/cloudbuild Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,16 @@ RUN cd /opt/playground/backend/kafka-emulator/ && tar -xvf kafka-emulator.tar &&
6565 mv kafka-emulator/*.jar . && rmdir kafka-emulator/ &&\
6666 mv beam-playground-kafka-emulator-*.jar beam-playground-kafka-emulator.jar
6767RUN apt-get update && \
68- apt install openjdk-17-jre-headless -y
68+ apt install openjdk-17-jre-headless -y
6969
7070# Create a user group `appgroup` and a user `appuser`
7171RUN groupadd --gid 20000 appgroup \
7272 && useradd --uid 20000 --gid appgroup --shell /bin/bash --create-home appuser
7373
7474RUN mkdir -p /opt/playground/backend/executable_files/
7575
76+ RUN pip install apache-beam[gcp,interactive]==$BEAM_VERSION
77+
7678# Chown all required files to the `appuser`.
7779RUN chown -R appuser:appgroup /opt/playground/backend/executable_files/ && chmod +x /entrypoint.sh
7880
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ LogOutput "Input variables:
8282 BEAM_USE_WEBGRPC=$BEAM_USE_WEBGRPC
8383 DATASTORE_NAMESPACE=$DATASTORE_NAMESPACE
8484 FORCE_CD=$FORCE_CD "
85-
85+
8686
8787# Script starts in a clean environment in Cloud Build. Set minimal required environment variables
8888if [ -z " $PATH " ]; then
@@ -110,6 +110,7 @@ apt install -y python3.10-venv > /dev/null 2>&1
110110LogOutput " Installing Python packages from beam/playground/infrastructure/requirements.txt"
111111cd $BEAM_ROOT_DIR
112112pip install -r playground/infrastructure/requirements.txt
113+ pip install setuptools
113114
114115LogOutput " Looking for files changed by the merge commit $MERGE_COMMIT "
115116git fetch origin $MERGE_COMMIT
130131 LogOutput " FORCE_CD is true. Example deployment for SDK_${sdk^^} is forced"
131132 example_has_changed=" true"
132133 else
133- LogOutput " ------------------Starting checker.py for SDK_${sdk^^} ------------------"
134+ LogOutput " ------------------Starting checker.py for SDK_${sdk^^} ------------------"
134135 cd $BEAM_ROOT_DIR /playground/infrastructure
135136 python3 checker.py \
136137 --verbose \
159160 eval " check_${sdk} _passed" =" true"
160161 continue
161162 fi
162-
163+
163164 cd $BEAM_ROOT_DIR /playground/infrastructure
164165 LogOutput " Running ci_cd.py for SDK $sdk "
165166
187188 exit 1
188189 fi
189190done
190- exit 0
191+ exit 0
You can’t perform that action at this time.
0 commit comments