kevinjqliu commented on code in PR #19260:
URL: https://github.com/apache/iceberg/pull/19260#discussion_r4763069511


##########
docker/iceberg-rest-fixture/Dockerfile:
##########
@@ -17,15 +17,13 @@
 # under the License.
 #
 
-FROM azul/zulu-openjdk:17-jre-headless
+FROM eclipse-temurin:21-jre-noble
 
 # Set up the user and group
 RUN  set -xeu && \
+     userdel -r ubuntu && \
      groupadd iceberg --gid 1000 && \
-     useradd iceberg --uid 1000 --gid 1000 --create-home && \
-     apt-get update && \
-     apt-get install -y --no-install-recommends curl && \
-     rm -rf /var/lib/apt/lists/*
+     useradd iceberg --uid 1000 --gid 1000 --create-home

Review Comment:
   1. ubuntu 24.04 pre-creates uid/gid 1000 as `ubuntu`, so remove it first 
before creating `iceberg:1000`.
   
   2. `eclipse-temurin:21-jre-noble` already ships `curl`, so we can drop 
`apt-get update && apt-get install curl` completely. this also removes the ~127 
MB `/var/cache/apt` bloat that newer `azul/zulu-openjdk` images were leaving 
behind



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to