-
-
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 -w /..path../workspace -v /..path../workspace:/..path../workspace <image> 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: ` 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