Skip to content

Commit

Permalink
INJICERT-661 Updated dependencies and README
Browse files Browse the repository at this point in the history
Signed-off-by: Hitesh Jain <[email protected]>
  • Loading branch information
jainhitesh9998 committed Feb 6, 2025
1 parent b750981 commit f6dd187
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
2 changes: 1 addition & 1 deletion certify-service-with-plugins/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mosipdev/inji-certify:INJICERT-661
FROM mosipdev/inji-certify:develop

ARG SOURCE
ARG COMMIT_HASH
Expand Down
26 changes: 26 additions & 0 deletions certify-service-with-plugins/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Certify Service with Plugins

## Overview
`certify-service-with-plugins` is a streamlined service that bundles runtime JARs within the Docker image, eliminating the need for an external artifact repository like Artifactory. This enhances deployment efficiency and reduces external dependencies.
This is built on top of base inji-certify docker image and includes the plugins required for the service to run.

## Features
- Bundles runtime JARs directly within the Docker image.
- Simplifies deployment process for demos and POCs.
- Removes dependency on Artifactory.
- Supports optional installation of `hsm_client` during deployment.

## Installation & Deployment
### Prerequisites
- Docker installed on the system.
- Required JARs included in the build process.

### Deploying the Service
To deploy the service, ensure the necessary configurations are set in your deployment pipeline. The JARs are already included in the image, so no additional artifact retrieval steps are needed.
New plugins if needed can be mounted loader_path

#### Enabling HSM Client
To install the `hsm_client`, set the following environment variable in the deployment configuration:
```sh
$install_hsm_client=true
```
8 changes: 4 additions & 4 deletions certify-service-with-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@

<properties>
<certify-plugins.location>target/certify-plugins</certify-plugins.location>
<mock-certify-plugin.version>0.3.1-SNAPSHOT</mock-certify-plugin.version>
<mock-certify-plugin.version>0.4.0-SNAPSHOT</mock-certify-plugin.version>
<mock-certify-plugin.fileName>mock-certify-plugin.jar</mock-certify-plugin.fileName>
<mosip-identity-certify-plugin.version>0.3.0-SNAPSHOT</mosip-identity-certify-plugin.version>
<mosip-identity-certify-plugin.version>0.4.0-SNAPSHOT</mosip-identity-certify-plugin.version>
<mosip-identity-certify-plugin.fileName>mosip-identity-certify-plugin.jar</mosip-identity-certify-plugin.fileName>
<postgres-dataprovider-plugin.version>0.3.0-SNAPSHOT</postgres-dataprovider-plugin.version>
<postgres-dataprovider-plugin.version>0.4.0-SNAPSHOT</postgres-dataprovider-plugin.version>
<postgres-dataprovider-plugin.fileName>postgres-dataprovider-plugin.jar</postgres-dataprovider-plugin.fileName>
<sunbird-rc-certify-integration-plugin.version>0.3.0-SNAPSHOT</sunbird-rc-certify-integration-plugin.version>
<sunbird-rc-certify-integration-plugin.version>0.4.0-SNAPSHOT</sunbird-rc-certify-integration-plugin.version>
<sunbird-rc-certify-integration-plugin.fileName>sunbird-rc-certify-integration-impl.jar</sunbird-rc-certify-integration-plugin.fileName>
</properties>

Expand Down
5 changes: 3 additions & 2 deletions docker-compose/docker-compose-injistack/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- "5433:5432"

certify:
image: mosipqa/inji-certify:0.10.x
image: mosipdev/inji-certify-with-plugins:develop
user: root
ports:
- 8090:8090
Expand All @@ -31,7 +31,8 @@ services:
- ./config/certify-csvdp-farmer.properties:/home/mosip/config/certify-csvdp-farmer.properties
- ./config/certify-mock-mdl.properties:/home/mosip/config/certify-mock-mdl.properties
- ./data/CERTIFY_PKCS12:/home/mosip/CERTIFY_PKCS12
- ./loader_path/certify/:/home/mosip/additional_jars/
# This can be enabled if one uses inji-certify docker image instead of inji-certify-with-plugins
#- ./loader_path/certify/:/home/mosip/additional_jars/
# modify the below file to change the identity fields in the VC
- ./config/farmer_identity_data.csv:/home/mosip/config/farmer_identity_data.csv
networks:
Expand Down

0 comments on commit f6dd187

Please sign in to comment.