Repository navigation
Use dpkg-tracked OpenJDK 25 runtime base images - #3280
Conversation
|
Is this overall more maintainable and the more supported, well-lit path for how to handle these containers generally? |
Candidly: compared to where we were ( 1. Why this PR is a step forward over
|
d616b79 to
eb7e9c0
Compare
There was a problem hiding this comment.
⚠️ Attention Required: Lockfile Detected
This pull request contains modifications to one or more *.lockfile files. Please confirm that you have run update_dependency.sh to push new dependencies to the private repo.
Someone with Admin role must manually dismiss this review before merging.
eb7e9c0 to
e1475b7
Compare
There was a problem hiding this comment.
⚠️ Attention Required: Lockfile Detected
This pull request contains modifications to one or more *.lockfile files. Please confirm that you have run update_dependency.sh to push new dependencies to the private repo.
Someone with Admin role must manually dismiss this review before merging.
Verified org.eclipse.jetty:jetty-home:12.1.15 is present in gs://domain-registry-maven-repository and synced lockfile metadata to sso://team/domain-registry-eng/nomulus_dependencies via update_dependency.sh.
jicelhay
left a comment
There was a problem hiding this comment.
@jicelhay reviewed 12 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on CydeWeys).
e1475b7 to
4d12a3d
Compare
GCP Artifact Analysis cannot natively inventory JVM runtimes in tarball-based Docker Hub images (eclipse-temurin:25 and jetty:12-jdk25), leaving OpenJDK CVEs untracked by OS-level scanners and tying CI builds to Docker Hub pulls. Migrating core, proxy, and jetty onto a single launcher.gcr.io/google/ubuntu2404 base layer with openjdk-25-jre-headless installed via apt-get registers the runtime in /var/lib/dpkg/status for native OS package scanning, shares a cached JRE layer across all three images, and eliminates floating Docker Hub tags. - Update core/Dockerfile, proxy/Dockerfile, and jetty/Dockerfile to use launcher.gcr.io/google/ubuntu2404 with ca-certificates and openjdk-25-jre-headless installed via apt-get, preserving existing -XX:-UseBASE64Intrinsics flags. - Stage Jetty Home through Gradle instead of downloading it inside jetty/Dockerfile. Declare org.eclipse.jetty:jetty-home in dependencies.gradle and lock org.eclipse.jetty:jetty-home:12.1.15 in jetty/gradle.lockfile (matching Jetty 12.1.15 elsewhere). Add the :jetty:unpackJettyHome task to unpack it into build/jetty-home during :jetty:stage, and fall back to build/jetty-home in :jetty:run when JETTY_HOME is unset. - Install the Cloud Profiler Java agent under a dedicated non-root jetty:jetty user in jetty/Dockerfile, preserving all runtime paths and permissions. - Update release/prepare_release_tree.sh, release/cloudbuild-release.yaml, release/cloudbuild-nomulus-images.yaml, and release/cloudbuild-proxy-images.yaml to mirror and digest-pin the shared ubuntu2404 base image across core, proxy, and jetty. - Add release/prepare_release_tree_test.sh and wire it into config/presubmits.py. BUG= http://b/587432676
4d12a3d to
bbbd260
Compare
There was a problem hiding this comment.
⚠️ Attention Required: Lockfile Detected
This pull request contains modifications to one or more *.lockfile files. Please confirm that you have run update_dependency.sh to push new dependencies to the private repo.
Someone with Admin role must manually dismiss this review before merging.
Verified org.eclipse.jetty:jetty-home:12.1.15 is synced to gcs://domain-registry-maven-repository/maven and built cleanly offline.
GCP Artifact Analysis cannot natively inventory JVM runtimes in
tarball-based Docker Hub images (
eclipse-temurin:25andjetty:12-jdk25), leaving OpenJDK CVEs untracked by OS-level scannersand tying CI builds to Docker Hub pulls. Migrating
core,proxy, andjettyonto a singlelauncher.gcr.io/google/ubuntu2404base layerwith
openjdk-25-jre-headlessinstalled viaapt-getregisters theruntime in
/var/lib/dpkg/statusfor native OS package scanning, sharesa cached JRE layer across all three images, and eliminates floating
Docker Hub tags.
core/Dockerfile,proxy/Dockerfile, andjetty/Dockerfileto use
launcher.gcr.io/google/ubuntu2404withca-certificatesandopenjdk-25-jre-headlessinstalled viaapt-get, preserving existing-XX:-UseBASE64Intrinsicsflags.jetty/Dockerfile. Declareorg.eclipse.jetty:jetty-homeindependencies.gradleand lockorg.eclipse.jetty:jetty-home:12.1.15=jettyHomeinjetty/gradle.lockfile(matching Jetty 12.1.15 elsewhere). Add the:jetty:unpackJettyHometask to unpack it intobuild/jetty-homeduring
:jetty:stage, and fall back tobuild/jetty-homein:jetty:runwhenJETTY_HOMEis unset.jetty:jettyuser injetty/Dockerfile, preserving all runtime pathsand permissions.
release/prepare_release_tree.sh,release/cloudbuild-release.yaml,release/cloudbuild-nomulus-images.yaml, andrelease/cloudbuild-proxy-images.yamlto mirror and digest-pin theshared
ubuntu2404base image acrosscore,proxy, andjetty.release/prepare_release_tree_test.shand wire it intoconfig/presubmits.py.BUG= http://b/587432676
This change is