Skip to content
Merged
Changes from all 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
11 changes: 9 additions & 2 deletions buildscripts/observability-test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Stage 1: Build the interop test client and server
#

FROM openjdk:11.0.16-jdk-slim-bullseye AS build
FROM eclipse-temurin:11-jdk AS build
Comment thread
sergiitk marked this conversation as resolved.

WORKDIR /grpc-java
COPY . .
Expand All @@ -33,12 +33,19 @@ RUN ./gradlew :grpc-gcp-observability:interop:installDist -PskipCodegen=true -Ps
# with the given parameters.
#

FROM openjdk:11.0.16-jdk-slim-bullseye
FROM eclipse-temurin:11-jre

WORKDIR /grpc-java/
COPY --from=build /grpc-java/gcp-observability/interop/build/install/interop/. .

WORKDIR /grpc-java/buildscripts/observability-test
COPY --from=build /grpc-java/buildscripts/observability-test/run.sh .

# Intentionally after the app COPY to force the update on each build.
# Update Ubuntu system packages:
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/grpc-java/buildscripts/observability-test/run.sh"]