From 1a05f39883fca49f8b8068a68a358dfe973055c0 Mon Sep 17 00:00:00 2001 From: Vlado Djerek Date: Wed, 6 Mar 2024 21:24:07 +0100 Subject: [PATCH] fix playground backend container builds (#30497) Co-authored-by: Vlado Djerek --- playground/backend/containers/java/Dockerfile | 2 +- playground/backend/containers/python/Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/playground/backend/containers/java/Dockerfile b/playground/backend/containers/java/Dockerfile index f9d1b24b96d2..5d5ce8019c8b 100644 --- a/playground/backend/containers/java/Dockerfile +++ b/playground/backend/containers/java/Dockerfile @@ -49,7 +49,7 @@ RUN mvn archetype:generate \ -DartifactId=pipeline-dependencies \ -DgroupId=org.apache.beam.samples WORKDIR /pipeline-dependencies/ -RUN mvn dependency:resolve && mvn -o dependency:list +RUN mvn dependency:resolve && mvn dependency:go-offline && mvn -o dependency:list RUN mvn dependency:copy-dependencies FROM apache/beam_java11_sdk:$BEAM_VERSION diff --git a/playground/backend/containers/python/Dockerfile b/playground/backend/containers/python/Dockerfile index 60a76f14f732..709a22eec963 100644 --- a/playground/backend/containers/python/Dockerfile +++ b/playground/backend/containers/python/Dockerfile @@ -64,7 +64,9 @@ COPY kafka-emulator/kafka-emulator.tar /opt/playground/backend/kafka-emulator/ RUN cd /opt/playground/backend/kafka-emulator/ && tar -xvf kafka-emulator.tar && rm 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-get install -y openjdk-11-jre-headless +RUN apt-get update && \ + wget http://http.us.debian.org/debian/pool/main/o/openjdk-11/openjdk-11-jre-headless_11.0.22+7-1~deb11u1_amd64.deb && \ + apt install -y ./openjdk-11-jre-headless_11.0.22+7-1~deb11u1_amd64.deb # Create a user group `appgroup` and a user `appuser` RUN groupadd --gid 20000 appgroup \