Browse Source

Replace deprecated adoptopenjdk docker images (#5971)

* Adoptium -> Temurin

* more

* windows
Trask Stalnaker 2 years ago
parent
commit
7f693622ff

+ 1 - 1
benchmark-overhead/Dockerfile-petclinic-base

@@ -1,4 +1,4 @@
-FROM adoptopenjdk:11-jdk as app-build
+FROM eclipse-temurin:11 as app-build
 
 # This is the base image that will contain a built version of the spring-petclinic-rest
 # application. Installing the dependencies and maven compiling the application is time

+ 1 - 1
benchmark-overhead/README.md

@@ -15,7 +15,7 @@ the agent and to measure how this overhead changes over time.
 
 The overhead tests here should be considered a "macro" benchmark. They serve to measure high-level
 overhead as perceived by the operator of a "typical" application. Tests are performed on a Java 11
-distribution from [AdoptOpenJDK](https://adoptopenjdk.net/).
+distribution from [Eclipse Temurin](https://projects.eclipse.org/projects/adoptium.temurin).
 
 ## Process
 

+ 8 - 3
smoke-tests/images/servlet/build.gradle.kts

@@ -10,7 +10,8 @@ plugins {
 
 data class ImageTarget(val version: List<String>, val vm: List<String>, val jdk: List<String>, val args: Map<String, String> = emptyMap(), val war: String = "servlet-3.0", val windows: Boolean = true)
 
-val extraTag = findProperty("extraTag") ?: java.time.format.DateTimeFormatter.ofPattern("yyyyMMdd.HHmmSS").format(java.time.LocalDateTime.now())
+val extraTag = findProperty("extraTag")
+  ?: java.time.format.DateTimeFormatter.ofPattern("yyyyMMdd.HHmmSS").format(java.time.LocalDateTime.now())
 
 // Each line under appserver describes one matrix of (version x vm x jdk), dockerfile key overrides
 // Dockerfile name, args key passes raw arguments to docker build
@@ -133,13 +134,17 @@ fun configureImage(parentTask: TaskProvider<out Task>, server: String, dockerfil
   val image = "ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-servlet-$server:$version-jdk$jdk$vmSuffix$platformSuffix-$extraTag"
 
   val jdkImage = if (vm == "hotspot") {
-    if (jdk == "18") {
+    if (jdk == "19") {
       "openjdk:$jdk"
     } else {
       "eclipse-temurin:$jdk"
     }
   } else if (vm == "openj9") {
-    "adoptopenjdk:$jdk-openj9"
+    if (isWindows) {
+      "adoptopenjdk:$jdk-openj9"
+    } else {
+      "ibm-semeru-runtimes:open-$jdk-jdk"
+    }
   } else {
     throw GradleException("Unexpected vm: $vm")
   }