RFR(S): 8221342: [TESTBUG] Generate Dockerfile for docker testing

Jie Fu fujie at loongson.cn
Wed Mar 27 03:24:47 UTC 2019


Hi Misha,

The default image for X86 is oraclelinux 7.6, which is also too old to 
run the JDK image I'd built on Ubuntu 18.04.
I's a bit inconvenient to use.

Shall we also update the default image for x86 like this?
------------------------------------
diff -r 6207397a6603 
test/lib/jdk/test/lib/containers/docker/DockerfileConfig.java
--- a/test/lib/jdk/test/lib/containers/docker/DockerfileConfig.java Tue 
Mar 26 15:00:02 2019 -0700
+++ b/test/lib/jdk/test/lib/containers/docker/DockerfileConfig.java Wed 
Mar 27 11:12:48 2019 +0800
@@ -52,7 +52,7 @@
              case "s390x":
                  return "s390x/ubuntu";
              default:
-                return "oraclelinux";
+                return "fedora";
          }
      }

@@ -63,13 +63,6 @@
              return version;
          }

-        switch (Platform.getOsArch()) {
-            case "aarch64":
-            case "ppc64le":
-            case "s390x":
-                return "latest";
-            default:
-                return "7.6";
-        }
+        return "latest";
      }
  }
------------------------------------
If so, there is no need to update the testing doc.

Thanks.

Best regards,
Jie


On 2019/3/27 上午10:58, mikhailo.seledtsov at oracle.com wrote:
> Hi Nick,
>
>
> On 3/26/19 7:49 PM, Nick Gasson wrote:
>> Hi Misha,
>>
>> On 26/03/2019 09:06, mikhailo.seledtsov at oracle.com wrote:
>>>
>>> I will see if I can get help testing this change on non-x64 platforms.
>>>
>>
>> Sorry for replying late to this. I tested this patch on AArch64 and 
>> it works fine except I had to change the Docker image from 
>> "aarch64/ubuntu" to "arm64v8/ubuntu". According to [1] aarch64/ubuntu 
>> is deprecated and hasn't been updated since Ubuntu 16.04 so the glibc 
>> version was too old to run the JDK image I'd built.
> Thank you for testing, and discovering the issue.
>> I'll open a separate JBS to update the default image for AArch64.
> Sounds good.
>
>
> Thank you,
> Misha
>>
>> Thanks,
>> Nick
>>
>>
>> [1] https://hub.docker.com/r/aarch64/ubuntu
>



More information about the hotspot-runtime-dev mailing list