Skip to content

Commit

Permalink
remove criu in standard edition
Browse files Browse the repository at this point in the history
  • Loading branch information
Accelerator1996 committed Oct 18, 2024
1 parent 85f1153 commit 059963c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -745,17 +745,19 @@ executeTemplatedFile() {
mkdir -p ${PRODUCT_HOME}/lib/serverless
cp serverless-adapter/target/serverless-adapter-0.1.jar ${PRODUCT_HOME}/lib/serverless/serverless-adapter.jar
cp serverless-adapter/output/libloadclassagent.so ${PRODUCT_HOME}/lib/serverless/
if [ "$(arch)" = "x86_64" ];then
if [ -z "`echo ${BUILD_CONFIG[BRANCH]} | grep standard`" ];then
if [ "$(arch)" = "x86_64" ];then
local criuDownloadUrl=$(curl -s https://api.github.com/repos/dragonwell-project/criu/releases/latest | grep -i browser_download_url | grep \-x64 | cut -d '"' -f 4)
elif [ "$(arch)" = "aarch64" ];then
elif [ "$(arch)" = "aarch64" ];then
local criuDownloadUrl=$(curl -s https://api.github.com/repos/dragonwell-project/criu/releases/latest | grep -i browser_download_url | grep \-aarch64 | cut -d '"' -f 4)
fi
if [ -n "${criuDownloadUrl}" ];then
fi
if [ -n "${criuDownloadUrl}" ];then
rm -rf criu*
curl -OLSk -C - --retry 5 ${criuDownloadUrl} -o criu.tar.gz
tar zxf criu.tar.gz
chmod +x criu
mv criu ${PRODUCT_HOME}/lib/
fi
fi
elif [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" == "${JDK8_CORE_VERSION}" ] && [ -n "`echo ${BUILD_CONFIG[BUILD_FULL_NAME]} | grep -E 'linux-x86_64|linux-aarch64'`" ]; then
PRODUCT_HOME=$(ls -d ${PWD}/build/*/images/${BUILD_CONFIG[JDK_PATH]})
Expand Down

0 comments on commit 059963c

Please sign in to comment.