Skip to content

Commit

Permalink
gcp observability: Update Docker images to eclipse-temurin (#10218)
Browse files Browse the repository at this point in the history
Perform software update so that we install patches for latest
vulnerabilities. Similar to the fix in #10191
  • Loading branch information
stanley-cheung authored May 30, 2023
1 parent df85a45 commit 4277867
Showing 1 changed file with 9 additions and 2 deletions.
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

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"]

0 comments on commit 4277867

Please sign in to comment.