diff --git a/registration/Dockerfile b/registration/Dockerfile index 478f4b102b..d6c3cbd83a 100644 --- a/registration/Dockerfile +++ b/registration/Dockerfile @@ -1,4 +1,4 @@ -FROM mosipdev/javafx-reg-client-openjdk:latest +FROM mosipdev/openjdk-21-jre:latest ARG SOURCE ARG COMMIT_HASH diff --git a/registration/configure.sh b/registration/configure.sh index e192f37323..2629b296d1 100644 --- a/registration/configure.sh +++ b/registration/configure.sh @@ -82,10 +82,10 @@ wget "${artifactory_url}/artifactory/libs-release-local/clamav/clamav.jar" -O "$ wget "${artifactory_url}/artifactory/libs-release-local/clamav/kernel-virusscanner-clamav.jar" -O "${work_dir}"/registration-client/target/lib/kernel-virusscanner-clamav.jar #unzip Jre to be bundled -wget "${artifactory_url}/artifactory/libs-release-local/zulu11.41.23-ca-fx-jre11.0.8-win_x64.zip" -O "${work_dir}"/zulu11.41.23-ca-fx-jre11.0.8-win_x64.zip -/usr/bin/unzip "${work_dir}"/zulu11.41.23-ca-fx-jre11.0.8-win_x64.zip +wget "${artifactory_url}/artifactory/libs-release-local/zulu21.34.19-ca-fx-jre21.0.3-win_x64.zip" -O "${work_dir}"/zulu21.34.19-ca-fx-jre21.0.3-win_x64.zip +/usr/bin/unzip "${work_dir}"/zulu21.34.19-ca-fx-jre21.0.3-win_x64.zip mkdir -p "${work_dir}"/registration-client/target/jre -mv "${work_dir}"/zulu11.41.23-ca-fx-jre11.0.8-win_x64/* "${work_dir}"/registration-client/target/jre/ +mv "${work_dir}"/zulu21.34.19-ca-fx-jre21.0.3-win_x64/* "${work_dir}"/registration-client/target/jre/ chmod -R a+x "${work_dir}"/registration-client/target/jre cp "${work_dir}"/build_files/logback.xml "${work_dir}"/registration-client/target/lib/logback.xml @@ -112,7 +112,7 @@ cp "${work_dir}"/registration-client/target/run.bat "${work_dir}"/registration-c jarsigner -keystore "${work_dir}"/build_files/keystore.p12 -storepass ${keystore_secret} -tsa ${signer_timestamp_url_env} -digestalg SHA-256 "${work_dir}"/registration-client/target/lib/registration-client-${client_version_env}.jar CodeSigning jarsigner -keystore "${work_dir}"/build_files/keystore.p12 -storepass ${keystore_secret} -tsa ${signer_timestamp_url_env} -digestalg SHA-256 "${work_dir}"/registration-client/target/lib/registration-services-${client_version_env}.jar CodeSigning -/usr/local/openjdk-11/bin/java -cp "${work_dir}"/registration-client/target/registration-client-${client_version_env}.jar:"${work_dir}"/registration-client/target/lib/* io.mosip.registration.update.ManifestCreator "${client_version_env}" "${work_dir}/registration-client/target/lib" "${work_dir}/registration-client/target" +java -cp "${work_dir}"/registration-client/target/registration-client-${client_version_env}.jar:"${work_dir}"/registration-client/target/lib/* io.mosip.registration.update.ManifestCreator "${client_version_env}" "${work_dir}/registration-client/target/lib" "${work_dir}/registration-client/target" cd "${work_dir}"/registration-client/target/