Openjdk18 unavailable when building Docker image

Hey folks, just a heads up for anyone who runs into the same issue I have (and maybe a notice that some of the content might need updated);
when running through creating the Docker image as part of 5.1.3 in the Intermediate JS path the steps will fail due to openjdk18 seemingly not being available via APK any longer

 => ERROR [3/9] RUN apk add openjdk18-jre                                                                                                                                                                                                       0.5s
------
 > [3/9] RUN apk add openjdk18-jre:
#5 0.509 ERROR: unable to select packages:
#5 0.509   openjdk18-jre (no such package):
#5 0.509     required by: world[openjdk18-jre]
------

I haven’t proceeded much further just yet, but you should be able to get it to successfully build by using openjdk21-jre which seems to be the next available version going by what I could see in the available packages here. Looks like the package is still listed, but isn’t returning in those searches and can’t be fetched so might have been deprecated or such?

Will see soon if there’s any issues from running a few major versions ahead of what was listed :crossed_fingers:

4 Likes

Thanks for the heads up on this. I’ve made the necessary tweaks to the course to update it to Java 21. Should be reflected in the course very soon.

3 Likes

Those updates have been made to the MoT Intermediate Certificate in Test Automation - Java course. Thanks again, @spk, for highlighting this, and thanks, @mwinteringham , too! :raised_hands:

1 Like