Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: Build and run ORT with Java 17 LTS
Build ORT with Java 17 LTS to benefit from newer bytecode optimizations [1] and to get rid of the bogus "illegal reflective access" warning triggered by Retrofit which caused a lot of confusion [2]. While "Alpine is not in a supported release by OpenJDK" [3], eclipse-temurin [4] (which supersedes the deprecated adoptopenjdk [5]) does offers both JRE and JDK Alpine images [6]. However, use neither of them and instead prefer to use the slightly larger "17-jdk-focal" image instead as that JDK image can also be easily used to *run* ORT in order to supersede #4178, so building and running ORT share the same image. At a later point, the effort to use "eclipse-temurin:17-jdk-alpine" for running (and building) ORT could be undertaken in order to reduce the Docker image size (see #3230). But installing all required tools and building ScanCode on Alpine could become difficult. [1]: #4912 [2]: https://github.com/oss-review-toolkit/ort/search?q=%22illegal+reflective+access%22&type=issues [3]: https://hub.docker.com/_/openjdk [4]: https://hub.docker.com/_/eclipse-temurin [5]: https://hub.docker.com/_/adoptopenjdk [6]: https://blog.adoptium.net/2021/09/eclipse-temurin-17-available/ Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
- Loading branch information