forked from adoptium/temurin-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dragonwell support (adoptium#2051)
* add dragonwell support * fix bootJDK * Update jdk8u.groovy
- Loading branch information
Showing
11 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG image | ||
|
||
FROM $image | ||
|
||
RUN \ | ||
# Dragonewell 8 requires a dragonwell 8 BootJDK | ||
mkdir -p /opt/dragonwell; \ | ||
wget https://github.com/alibaba/dragonwell8/releases/download/dragonwell-8.4.4_jdk8u262-ga/Alibaba_Dragonwell_8.4.4-GA_Linux_x64.tar.gz; \ | ||
tar -xf Alibaba_Dragonwell_8.4.4-GA_Linux_x64.tar.gz -C /opt/; \ | ||
mv /opt/jdk8u262-b10 /opt/dragonwell8 | ||
|
||
ENV JDK7_BOOT_DIR="/opt/dragonwell8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,9 @@ getOpenJdkVersion() { | |
fi | ||
else | ||
version=${BUILD_CONFIG[TAG]:-$(getFirstTagFromOpenJDKGitRepo)} | ||
|
||
if [ "${BUILD_CONFIG[BUILD_VARIANT]}" == "${BUILD_VARIANT_DRAGONWELL}" ]; then | ||
version=$(echo $version | cut -d'_' -f 2) | ||
fi | ||
# TODO remove pending #1016 | ||
version=${version%_adopt} | ||
version=${version#aarch64-shenandoah-} | ||
|
@@ -244,10 +246,18 @@ configuringVersionStringParameter() | |
|
||
addConfigureArg "--without-version-pre" "" | ||
addConfigureArgIfValueIsNotEmpty "--with-version-build=" "${buildNumber}" | ||
addConfigureArg "--with-vendor-version-string=" "AdoptOpenJDK" | ||
addConfigureArg "--with-vendor-url=" "https://adoptopenjdk.net/" | ||
addConfigureArg "--with-vendor-name=" "AdoptOpenJDK" | ||
addConfigureArg "--with-vendor-bug-url=" "https://github.com/AdoptOpenJDK/openjdk-support/issues" | ||
|
||
if [[ "${BUILD_CONFIG[BUILD_VARIANT]}" == "${BUILD_VARIANT_DRAGONWELL}" ]]; then | ||
addConfigureArg "--with-vendor-name=" "Alibaba" | ||
addConfigureArg "--with-vendor-url=" "http://www.alibabagroup.com" | ||
addConfigureArg "--with-vendor-bug-url=" "mailto:[email protected]" | ||
addConfigureArg "--with-vendor-version-string=" "\"(Alibaba Dragonwell)\"" | ||
else | ||
addConfigureArg "--with-vendor-version-string=" "AdoptOpenJDK" | ||
addConfigureArg "--with-vendor-url=" "https://adoptopenjdk.net/" | ||
addConfigureArg "--with-vendor-name=" "AdoptOpenJDK" | ||
addConfigureArg "--with-vendor-bug-url=" "https://github.com/AdoptOpenJDK/openjdk-support/issues" | ||
fi | ||
|
||
if [[ "${BUILD_CONFIG[BUILD_VARIANT]}" == "${BUILD_VARIANT_OPENJ9}" ]]; then | ||
addConfigureArg "--with-vendor-vm-bug-url=" "https://github.com/eclipse/openj9/issues" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,11 @@ checkoutAndCloneOpenJDKGitRepo() { | |
# eg. origin https://github.com/adoptopenjdk/openjdk-jdk11u (fetch) | ||
# eg. origin https://github.com/adoptopenjdk/openjdk-jdk (fetch) | ||
# eg. origin [email protected]:adoptopenjdk/openjdk-jdk.git (fetch) | ||
git --git-dir "${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}/.git" remote -v | grep "origin.*fetch" | grep "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" | grep "${BUILD_CONFIG[REPOSITORY]}.git\|${BUILD_CONFIG[REPOSITORY]}\s" | ||
if [ "${BUILD_CONFIG[BUILD_VARIANT]}" == "${BUILD_VARIANT_DRAGONWELL}" ]; then | ||
git --git-dir "${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}/.git" remote -v | grep "origin.*fetch" | ||
else | ||
git --git-dir "${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}/.git" remote -v | grep "origin.*fetch" | grep "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" | grep "${BUILD_CONFIG[REPOSITORY]}.git\|${BUILD_CONFIG[REPOSITORY]}\s" | ||
fi | ||
local isValidGitRepo=$? | ||
set -e | ||
|
||
|
@@ -102,6 +106,7 @@ checkoutAndCloneOpenJDKGitRepo() { | |
git clean -ffdx | ||
|
||
updateOpenj9Sources | ||
updateDragonwellSources | ||
|
||
createSourceTagFile | ||
|
||
|
@@ -256,6 +261,14 @@ updateOpenj9Sources() { | |
fi | ||
} | ||
|
||
updateDragonwellSources() { | ||
if [[ "${BUILD_CONFIG[BUILD_VARIANT]}" == "${BUILD_VARIANT_DRAGONWELL}" ]] && [[ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" == "${JDK8_CORE_VERSION}" ]]; then | ||
cd "${BUILD_CONFIG[WORKSPACE_DIR]}/${BUILD_CONFIG[WORKING_DIR]}/${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}" || return | ||
bash get_source_dragonwell.sh --site github | ||
cd "${BUILD_CONFIG[WORKSPACE_DIR]}" | ||
fi | ||
} | ||
|
||
# Clone the git repo | ||
cloneOpenJDKGitRepo() { | ||
setGitCloneArguments | ||
|