Skip to content

p-zalejko/openjdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

My OpenJDK builds

This repository provides a simple script that builds OpenJDK in Docker.

How it works

  • 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

How to build

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)

How to customize the build

By editing docker/Dockerfile you can customize a few simple parameters