-
-
Notifications
You must be signed in to change notification settings - Fork 255
Building OpenJDK using temurin build scripts within the adopt build docker container
Andrew Leonard edited this page Mar 11, 2022
·
13 revisions
- Pull the build docker image for your environment:
For a x64 architecture use docker image: docker pull adoptopenjdk/centos6_build_image
For a arm64 architecture use docker image: docker pull adoptopenjdk/centos7_build_image
- Create a local workspace to build in:
mkdir workspace
- Start docker container, substitute full path to workspace:
docker run -it -u=$(id -u):$(id -g) -w /..path../workspace -v /..path../workspace:/..path../workspace <image from (1)> bash
Note: If you have SELinux enabled (check with sestatus), then use -v /..path../workspace:/..path../workspace:z
- git clone https://github.com/adoptium/temurin-build.git
- cd temurin-build
- Set the following environment variables, put into a script and source to make easier. Choose settings appropriate to your required arch, target, variant and version to build..:
export ARCHITECTURE=x64
export TARGET_OS=linux
export VARIANT=temurin
export JAVA_TO_BUILD=jdk17u
#export BUILD_ARGS= for any build args
#export CONFIGURE_ARGS= for any openjdk configure args
- Perform build with command:
build-farm/make-adopt-build-farm.sh