https://github.com/marschall/openjdk-dockerfiles
Dockerfiles for building OpenJDK locally
https://github.com/marschall/openjdk-dockerfiles
docker-image openjdk
Last synced: 2 months ago
JSON representation
Dockerfiles for building OpenJDK locally
- Host: GitHub
- URL: https://github.com/marschall/openjdk-dockerfiles
- Owner: marschall
- Created: 2017-07-18T12:17:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-07T20:57:02.000Z (over 8 years ago)
- Last Synced: 2025-01-16T02:45:02.668Z (over 1 year ago)
- Topics: docker-image, openjdk
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Builidng OpenJDK with Docker
============================
The following dockerfiles allows you to locally build a fastdebug OpenJDK with unlimited crypto policy without having to install all the necessary libraries on your system.
You can build OpenJDK with
```sh
./build-openjdk-9-toolchain.sh
./build-jdk-9.sh
```
`./build-openjdk-9-toolchain.sh` builds the docker image with all the tools to build OpenJDK, `./build-openjdk-9.sh` builds OpenJDK using the docker image. The final JVM and the source code will end up in the `./jdk9/build/linux-x86_64-normal-server-fastdebug/jdk` folder.
In general the more CPU and memory resources the docker container has the quicker the build finishes. Unfortunately one of the slowest parts is downloading all the sources.
Caveats
-------
* Currently OpenJDK 10 does not build because the OpenJDK 9 bootstrap JVM in Ubuntu is too old.
Credits
-------
A lot is taken from
* http://arturmkrtchyan.com/building-openjdk-9-on-ubuntu
* https://github.com/cloudfoundry/java-buildpack-dependency-builder/blob/master/openjdk.sh
* https://github.com/hgomez/obuildfactory/wiki/How-to-build-and-package-OpenJDK-8-on-Linux