Support OpenJDK 10 for builder images 81/76781/4
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 9 Oct 2018 09:44:43 +0000 (19:44 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 10 Oct 2018 00:27:23 +0000 (10:27 +1000)
commit0dc12f53b04591cd9b1d6251b60752341abd7810
tree00174d9623fe4c776a259a596f74102e31a32dbb
parent036bca4e1dcae8533b5c8b58f17e3e71c449bed9
Support OpenJDK 10 for builder images

Install OpenJDK 10 from http://jdk.java.net/ into /opt.
While the default version of Java will still be 1.8.0 version,
set the slave links using alternatives so that the
required version of Java can be switched during job runtime.

Example: the command switches to Java 10.

$ echo 3 | sudo alternatives --config java

JIRA: https://jira.linuxfoundation.org/browse/RELENG-1299
Change-Id: I54ac0c4913ae7afd173a1edf746d6bd31fb6d74d
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
packer/provision/local-builder.yaml