Skip to content

Commit 1c6657f

Browse files
authored
xds interop: Update Docker images to eclipse-temurin:11-jre (#10172) (#10183)
- Update to xDS Test Client and xDS test server Docker images to `eclipse-temurin:11-jre`. - Perform software update so that we install patches for latest vulnerabilities.
1 parent 3996241 commit 1c6657f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

buildscripts/xds-k8s/test-client.Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build runtime image.
2-
FROM openjdk:11.0.9.1-jdk
2+
FROM eclipse-temurin:11-jre
33

44
ENV APP_DIR=/usr/src/app
55
WORKDIR $APP_DIR
@@ -11,5 +11,12 @@ COPY grpc-interop-testing/ $APP_DIR/
1111
COPY logging*.properties $APP_DIR/
1212
ENV JAVA_OPTS="-Djava.util.logging.config.file=$APP_DIR/logging-json.properties"
1313

14+
# Intentionally after the app COPY to force the update on each build.
15+
# Update Ubuntu system packages:
16+
RUN apt-get update \
17+
&& apt-get -y upgrade \
18+
&& apt-get -y autoremove \
19+
&& rm -rf /var/lib/apt/lists/*
20+
1421
# Client
1522
ENTRYPOINT ["bin/xds-test-client"]

buildscripts/xds-k8s/test-server.Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build runtime image.
2-
FROM openjdk:11.0.9.1-jdk
2+
FROM eclipse-temurin:11-jre
33

44
ENV APP_DIR=/usr/src/app
55
WORKDIR $APP_DIR
@@ -11,5 +11,12 @@ COPY grpc-interop-testing/ $APP_DIR/
1111
COPY logging*.properties $APP_DIR/
1212
ENV JAVA_OPTS="-Djava.util.logging.config.file=$APP_DIR/logging-json.properties"
1313

14+
# Intentionally after the app COPY to force the update on each build.
15+
# Update Ubuntu system packages:
16+
RUN apt-get update \
17+
&& apt-get -y upgrade \
18+
&& apt-get -y autoremove \
19+
&& rm -rf /var/lib/apt/lists/*
20+
1421
# Server
1522
ENTRYPOINT ["bin/xds-test-server"]

0 commit comments

Comments
 (0)