Skip to content

aashipov/openjdk-build

Repository files navigation

-O3 (/O2) optimized vanilla openJDK

Why?

Around 10% faster than conventional one which is relevant for 'low-end' devices

How

x86_64 Linux with docker, user with UID 10001, a member of GID 10001 and docker groups, enough disk space to store openJDK source and build dir in ${HOME}

Windows host

Linux

Create & publish 'builder' image

DOCKER_BUILDKIT=1 docker build . --file=Dockerfile.alpine --target=jdkbuilder --tag=aashipov/openjdk-build:alpinejdkbuilder && docker push aashipov/openjdk-build:alpinejdkbuilder
DOCKER_BUILDKIT=1 docker build . --file=Dockerfile.centos --target=jdkbuilder --tag=aashipov/openjdk-build:centosjdkbuilder && docker push aashipov/openjdk-build:centosjdkbuilder

Build & publish openJDK

Centos, Debian, Alpine or openSUSE container to build openJDK 8, 11 or 17

DISTRO=alpine JAVA_VERSION=11 docker-compose -f docker-compose.yml run --rm jdk
DISTRO=centos JAVA_VERSION=8 docker-compose -f docker-compose.yml run --rm jdk

Windows

Clone, cd, run bash entrypoint8.bash, bash entrypoint9plus.bash 11 or bash entrypoint9plus.bash 17

Troubleshooting

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

On the host git config --global http.postBuffer 1048576000 and git clone ...

License

Perl "Artistic License"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages