This repository provides a simple script that builds OpenJDK in Docker.
- a bash script:
- downloads OpenJDK 15 that will be used as Boot JDK
- clones OpenJDK source code (from AdoptOpenJDK)
- builds a docker image that will be used as "the builder"
- starts the builder with monuted source code of the OpenJDK project
Go to script and execute:
sudo ./build-openjdk.sh
Once the build is done go to source/jdk/build/linux-x86_64-normal-server-release/images/jdk . Execute:
./java -version
The result should look like this:
openjdk version "16-internal" 2020-12-17
OpenJDK Runtime Environment PawelZalejkoJDK (build 16-internal+0-Pawel)
OpenJDK 64-Bit Server VM PawelZalejkoJDK (build 16-internal+0-Pawel, mixed mode)
By editing docker/Dockerfile you can customize a few simple parameters