Skip to content

Commit

Permalink
Merge pull request #969 from ashok-ksharma/release-1.3.x
Browse files Browse the repository at this point in the history
[MOSIP-35396] Added dependencies required for the Java 21 beta release in artifactory.
  • Loading branch information
ckm007 authored Oct 22, 2024
2 parents 59fdd11 + fe5f146 commit 6d14c8c
Show file tree
Hide file tree
Showing 40 changed files with 2,684 additions and 3,569 deletions.
373 changes: 373 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

37 changes: 26 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
# artifactory-server

This is a refeference implementation of artifactory service used within MOSIP. The artifactory service contains the dynamically loaded libraries and services. The current repository is a reference implementation of the artifactory service and it packages the necessary mocks, reference implementation to run the default version of MOSIP.

Following are the artifacts which is being served by the service:
1. Auth-adapter.jar
2. Ref-Idobjectvalidator.jar
3. Biosdk.zip
4. hsm client
5. cache jar
6. sms-notification.jar
7. clamav-antivirus.jar
* This is a reference implementation of artifactory service used within MOSIP.
* The artifactory service contains the dynamically loaded libraries and services.
* The current repository is a reference implementation of the artifactory service and it packages the necessary mocks, reference implementation to run the default version of MOSIP.
* Following are the artifacts which is being served by the service:
* Kernel auth adapter jars.
* Referenced IDObjectvalidator jar.
* Sms service provider jar.
* Transliteration ICU4J jar.
* Registration api stub impl jar.
* Virusscanner jar.
* ClamAV client jar.
* mock-sdk jar.
* Biosdk client jar.
* Biosdk client zip
* Demo sdk jar and zip.
* Childauth filter jar.
* Hazelcast cache jar.
* Redis cache jar.
* Authentication wrapper jar.
* Sunbird RC Certify plugin integration impl jar.
* Softhsm client zip.
* i18n bundles for multiple MOSIP UI's.
* Masterdata templates for admin service module.
* themes for multiple UI's.
* All these artifacts are released as a part of the Mosip Release with some of them being taken from open sourced repository as per the need.

All these artifacts are released as a part of the Mosip Release with some of them being taken from open sourced repository as per the need.

Expand All @@ -33,4 +48,4 @@ All these artifacts are released as a part of the Mosip Release with some of the
```
$ cd deploy
$ ./restart.sh
```
```
16 changes: 6 additions & 10 deletions artifacts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ ENV mosip_plugins_zip_path=${base_path}/libs-release-local/mosip-plugins
# environment valiable for sdk jar
ENV sdk_path=${base_path}/libs-release-local/mock-sdk/1.1.5/

# environment valiable for sdk jar
ENV jpeg_sdk_path=${base_path}/libs-release-local/jpeg-mock-sdk/1.1.5/

# environment valiable for image-compressor jar
ENV image_compressor_path=${base_path}/libs-release-local/compressor/

Expand Down Expand Up @@ -117,6 +114,9 @@ ENV esignet_wrapper_lib_zip_path=${base_path}/libs-release-local/esignet
# environment variable for Clamav dependency
ENV clamav_path=${base_path}/libs-release-local/clamav

# environment variable for registration-api-impl zip path
ENV registration_api_impl_zip_path=${base_path}/libs-release-local/registration-client

ENV regclient_jar_path=${base_path}/libs-release-local

ENV master_template_path=${base_path}/libs-release-local/master-templates
Expand All @@ -132,7 +132,7 @@ ENV version=1.2.1-SNAPSHOT
ENV idp_auth_wrapper_version=0.0.1-SNAPSHOT

# Create all the jar, i18n & theme paths.
RUN mkdir -p ${biosdk_client_zip_path}/biosdk-client ${demosdk_zip_path}/demosdk ${biosdk_lib_zip_path}/biosdk-lib ${cache_path} ${ida_sh_path} ${hsm_client_path} ${mosip_plugins_zip_path} ${kernel_jar_path} ${test_jar_path} ${idobject_jar_path} ${regproc_jar_path} ${sdk_path} ${image_compressor_path}/image-compressor ${icu4j_jar_path} ${clamav_path} ${i18n_zip_path} ${theme_zip_path} ${image_zip_path} ${child_auth_filter_jar_path} ${base_path}/libs-release-local/reg-client ${scripts_path} ${master_template_path} ${jpeg_sdk_path} ${jpegsdk_lib_zip_path}/jpeg-sdk-lib/ ${idp_auth_wrapper_lib_zip_path} ${esignet_wrapper_lib_zip_path}/esignet-wrapper ${certify_plugin_zip_path}/certify-plugin
RUN mkdir -p ${biosdk_client_zip_path}/biosdk-client ${demosdk_zip_path}/demosdk ${biosdk_lib_zip_path}/biosdk-lib ${cache_path} ${ida_sh_path} ${hsm_client_path} ${mosip_plugins_zip_path} ${kernel_jar_path} ${test_jar_path} ${idobject_jar_path} ${regproc_jar_path} ${sdk_path} ${image_compressor_path}/image-compressor ${icu4j_jar_path} ${clamav_path} ${i18n_zip_path} ${theme_zip_path} ${image_zip_path} ${child_auth_filter_jar_path} ${base_path}/libs-release-local/reg-client ${scripts_path} ${master_template_path} ${idp_auth_wrapper_lib_zip_path} ${esignet_wrapper_lib_zip_path}/esignet-wrapper ${certify_plugin_zip_path}/certify-plugin ${registration_api_impl_zip_path}/registration-api-impl

# Copy all the respective jars to the location

Expand All @@ -144,8 +144,6 @@ COPY /src/deployment/docker/id-authentication/* ${ida_sh_path}/

COPY /src/hsm/client.zip ${hsm_client_path}/

COPY /src/hsm/client-21.zip ${hsm_client_path}/

COPY /src/mosip-plugins/sign-in-with-esignet/sign-in-with-esignet.zip ${mosip_plugins_zip_path}/

COPY /src/testing/regproc-reprocessor-ceylon-cache-repo.zip ${test_jar_path}/
Expand All @@ -166,8 +164,6 @@ COPY /src/i18n/pre-registration-i18n-bundle/* ${work_dir}/pre-registration-i18n

COPY /src/master-templates/* ${work_dir}/master-templates/

COPY /src/i18n/idp-i18n-bundle/* ${work_dir}/idp-i18n-bundle/

COPY /src/i18n/oidc-demo-i18n-bundle/* ${work_dir}/oidc-demo-i18n-bundle/

COPY /src/i18n/mock-relying-party-i18n-bundle/* ${work_dir}/mock-relying-party-i18n-bundle/
Expand All @@ -184,7 +180,7 @@ COPY /src/i18n/esignet-signup-i18n-bundle/* ${work_dir}/esignet-signup-i18n-bun

COPY /src/theme/esignet-signup-theme/* ${work_dir}/esignet-signup-theme/

COPY /src/jre/zulu11.41.23-ca-fx-jre11.0.8-win_x64.zip ${regclient_jar_path}/zulu11.41.23-ca-fx-jre11.0.8-win_x64.zip
COPY /src/jre/* ${regclient_jar_path}/

COPY /src/icu4j/* ${icu4j_jar_path}/

Expand All @@ -205,4 +201,4 @@ USER ${container_user_uid}:${container_user_gid}

EXPOSE 8080

CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
24 changes: 13 additions & 11 deletions artifacts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,28 @@ set -e
# This scripts performs multiple commands to set up the libraries inside the artifactory server docker.
# Activies performed are listed as below
# 1. biosdk-client zip creation
# 2. jpeg-sdk-lib zip creation
# 3. biosdk-lib zip ceation
# 2. biosdk-lib zip ceation
# 3. image-compressor zip ceation
# 4. demosdk-lib zip creation
# 5. Create resources zip for reg-client
# 6. Create i18n and entity-spec bundles zip files for all the required modules
# 7. registration-api-impl zip creation

echo biosdk client zip creation started
zip -r -j ${biosdk_client_zip_path}/biosdk-client.zip ${biosdk_client_zip_path}/biosdk-client/*
rm -rf ${biosdk_client_zip_path}/biosdk-client
echo biosdk client zip creation completed

echo jpeg-sdk-lib zip creation started
zip -r -j ${jpegsdk_lib_zip_path}/jpeg-sdk-lib.zip ${jpegsdk_lib_zip_path}/jpeg-sdk-lib/*
rm -rf ${jpegsdk_lib_zip_path}/jpeg-sdk-lib
echo jpeg-sdk-lib zip creation completed

echo biosdk-lib zip creation started
zip -r -j ${biosdk_lib_zip_path}/biosdk-lib.zip ${biosdk_lib_zip_path}/biosdk-lib/*
rm -rf ${biosdk_lib_zip_path}/biosdk-lib
echo biosdk-lib zip creation completed

echo image-compressor zip creation started
zip -r -j ${image_compressor_path}/image-compressor.zip ${image_compressor_path}/image-compressor/*
rm -rf ${image_compressor_path}/image-compressor
echo image-compressor zip creation completed

echo demosdk-client zip creation started
zip -r -j ${demosdk_zip_path}/demosdk.zip ${demosdk_zip_path}/demosdk/*
rm -rf ${demosdk_zip_path}/demosdk
Expand Down Expand Up @@ -53,19 +54,17 @@ rm -rf ${work_dir}/admin-entity-spec-bundle ${work_dir}/pmp-entity-spec-bundle
echo spec-bundle zip creation completed

echo i18n-bundles zip creation for all the mentioned modules started
zip -r -j ${i18n_zip_path}/admin-i18n-bundle.zip ${work_dir}/admin-i18n-bundle/*
zip -r -j ${i18n_zip_path}/admin-i18n-bundle.zip ${work_dir}/admin-i18n-bundle/*
zip -r -j ${i18n_zip_path}/pmp-i18n-bundle.zip ${work_dir}/pmp-i18n-bundle/*
zip -r -j ${i18n_zip_path}/pre-registration-i18n-bundle.zip ${work_dir}/pre-registration-i18n-bundle/*
zip -r -j ${i18n_zip_path}/oidc-demo-i18n-bundle.zip ${work_dir}/oidc-demo-i18n-bundle/*
zip -r -j ${i18n_zip_path}/idp-i18n-bundle.zip ${work_dir}/idp-i18n-bundle/*
zip -r -j ${i18n_zip_path}/mock-relying-party-i18n-bundle.zip ${work_dir}/mock-relying-party-i18n-bundle/*
zip -r -j ${i18n_zip_path}/esignet-i18n-bundle.zip ${work_dir}/esignet-i18n-bundle/*
zip -r -j ${i18n_zip_path}/esignet-signup-i18n-bundle.zip ${work_dir}/esignet-signup-i18n-bundle/*
rm -rf ${work_dir}/admin-i18n-bundle \
${work_dir}/pmp-i18n-bundle \
${work_dir}/pre-registration-i18n-bundle \
${work_dir}/oidc-demo-i18n-bundle \
${work_dir}/idp-i18n-bundle \
${work_dir}/mock-relying-party-i18n-bundle \
${work_dir}/esignet-i18n-bundle \
${work_dir}/resident-i18n-bundle \
Expand All @@ -89,4 +88,7 @@ echo master-templates zip creation started
zip -r -j ${master_template_path}/master-templates.zip ${work_dir}/master-templates/*
echo master-templates zip creation completed


echo registration-api-impl zip creation started
zip -r -j ${registration_api_impl_zip_path}/registration-api-impl.zip ${registration_api_impl_zip_path}/registration-api-impl/*
rm -rf ${registration_api_impl_zip_path}/registration-api-impl
echo registration-api-impl zip creation completed
Loading

0 comments on commit 6d14c8c

Please sign in to comment.