Skip to content

Commit

Permalink
xds interop: Update Docker images to eclipse-temurin:11-jre (#10172) (
Browse files Browse the repository at this point in the history
#10182)

- 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.
  • Loading branch information
sergiitk committed May 16, 2023
1 parent c9241bd commit 73d756c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion buildscripts/xds-k8s/test-client.Dockerfile
@@ -1,5 +1,5 @@
# Build runtime image.
FROM openjdk:11.0.9.1-jdk
FROM eclipse-temurin:11-jre

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

# 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/*

# Client
ENTRYPOINT ["bin/xds-test-client"]
9 changes: 8 additions & 1 deletion buildscripts/xds-k8s/test-server.Dockerfile
@@ -1,5 +1,5 @@
# Build runtime image.
FROM openjdk:11.0.9.1-jdk
FROM eclipse-temurin:11-jre

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

# 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/*

# Server
ENTRYPOINT ["bin/xds-test-server"]

0 comments on commit 73d756c

Please sign in to comment.