teamatldocker / jira

Dockerized Atlassian Jira
https://hub.docker.com/r/teamatldocker/jira/
MIT License
445 stars 225 forks source link

Switch to using AdoptOpenJDK #122

Closed Firefishy closed 5 years ago

Firefishy commented 5 years ago

Atlassian are now switching to using AdoptOpenJDK since 7.13+ https://confluence.atlassian.com/jirasoftware/jira-software-7-13-x-release-notes-957981568.html#JiraSoftware7.13.xreleasenotes-AdoptOpenJDK8comestoJira

Likely best to switch to docker image adoptopenjdk/openjdk8:alpine for the FROM.

Firefishy commented 5 years ago

https://hub.docker.com/r/adoptopenjdk/openjdk8

blacklabelops commented 5 years ago

This image uses the jdk coming along with jira. It will be okay as long the JDK will run inside alpine.

jhult commented 5 years ago

As of 8.0, Atlassian is still bundling Oracle JRE 8.

Unlike Oracle JRE, AdoptOpenJDK is not bundled with the Jira installers, and you need to install it on your own.

The reason for possibly switching is mentioned here:

Oracle will stop providing public updates for Oracle JDK 8 in January. This means that only Oracle customers with a paid subscription or support contract will be eligible for updates.

In order to provide you with another option, we now support running Jira 7.13 with AdoptOpenJDK 8. AdoptOpenJDK is free to use, and provides regular maintenance and security updates. Paid support for AdoptOpenJDK is also available from organisations such as IBM.

Here is some additional reading:

unquietwiki commented 5 years ago

The official Confluence image switched some time ago; been fine in my environment. I wish I understood why they don't offer an official Jira image: it'd make the work here redundant, but they are the vendor...

jhult commented 5 years ago

A few notes:

  1. I made the choice to use OpenJ9. See here for more information. If so desired, you can change this back to HotSpot by updating top line of the Dockerfile and build yourself.

  2. Atlassian is going to switch the bundled installer from Oracle JDK to use AdoptOpenJDK 8 in 8.2+ and AdoptOpenJDK 11 in 8.4+. See here for more information.

  3. Jira does not currently work with 11.0.2.x. See here for more information. Supposedly it works with 11.0.1.x but I have not yet confirmed this.