Skip to content

Conversation

@asmit990
Copy link

This PR adds a --force-reset option to the install.sh script to address the issue where Prisma migrations fail due to the PostgreSQL database schema not being empty. The script will now:

Remove the existing PostgreSQL volume (which contains the schema and data) if the --force-reset flag is provided.

Restart the Docker containers to ensure that the database is clean and migrations can run successfully.

Changes Made:

Added logic in install.sh to handle the --force-reset flag.

Used Docker commands to remove the existing PostgreSQL volume and restart the containers.

Why This Change:

Prisma migrations expect an empty database schema to function correctly. The --force-reset option ensures the database is reset before running the migrations, avoiding the P3005 error.

jainhitesh9998 and others added 25 commits February 17, 2025 17:21
* [INJICERT-895] Bug fixes relateed to spec compliance

Changes:
	fix for did:jwk resolution
	made iss as optional, remove exp field

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* [INJICERT-895]
Added exp claim as optional

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

---------

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Signed-off-by: Vishwa <visu.vs1@gmail.com>
fixed issue related to concurrency and static variable

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
* [DSD-7419]
updated base image for certify with plugins

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* [DSD-7420] (inji#244)

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
(cherry picked from commit 9b16e0b)

* [INJICERT-936]

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* [INJICERT-936]
addressed review comments

Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>

* [INJICERT-936]
updated helm chart with redirect of did.json

Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>

* [INJICERT-936]
removed R1 algorithm from csv file

Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>

* [INJICERT-936]

updated well-known

Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>

* Moved the changes to RELEASES.md file

Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>

* [INJICERT-936]
Removed ec k1 2016 - Not part of release

Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>

---------

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Signed-off-by: Hitesh C <jainhitesh9998@gmail.com>
* [MOSIP-35637] added sqaush layers

Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com>

* MOSIP-39719

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39719

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39719

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39719 - Added a log level for the commons classes

* MOSIP-39719

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39719

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39719

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

---------

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-38542

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* [MOSIP-39957] Updated chart version and repo name for certify db (inji#239)

Signed-off-by: Abhi <abhishek.shankarcs@gmail.com>

* Merge pull request inji#236 from Infosys/INJICERT-895 (inji#241)

[INJICERT-895]

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Co-authored-by: Vishwa <visu.vs1@gmail.com>

* Mosip 39047 - Commons cleanup (inji#250)

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

---------

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40467 - Generate unique identity data for sunbird policy to avoid duplicate conflict (inji#251)

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

---------

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047 - Commons cleanup (inji#253)

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

---------

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40516

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40516 - Fix the automation failures while running only the smoke test (inji#254)

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40467

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-39047

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40516

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

---------

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* INJICERT-944

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40791

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40791

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40791

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

* MOSIP-40791

Signed-off-by: Nandhukumar <nandhukumare@gmail.com>

---------

Signed-off-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com>
Signed-off-by: Nandhukumar <nandhukumare@gmail.com>
Signed-off-by: Abhi <abhishek.shankarcs@gmail.com>
Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Co-authored-by: Rakshith B <79500257+Rakshithb1@users.noreply.github.com>
Co-authored-by: Chandra Keshav Mishra <chandrakeshavmishra@gmail.com>
Co-authored-by: Abhishek S <127825992+abhishek8shankar@users.noreply.github.com>
Co-authored-by: Hitesh Jain <jainhitesh9998@gmail.com>
Co-authored-by: Vishwa <visu.vs1@gmail.com>
Signed-off-by: Nandhukumar <nandhukumare@gmail.com>
…#264)

Signed-off-by: Piyush7034 <piyushshukla2100@gmail.com>
… readme (inji#265)

Signed-off-by: Piyush7034 <piyushshukla2100@gmail.com>
Signed-off-by: Chandra Keshav Mishra <chandrakeshavmishra@gmail.com>
[DSD-7795] added issue templates for c4gt
Signed-off-by: Chandra Keshav Mishra <chandrakeshavmishra@gmail.com>
Signed-off-by: Nandhukumar <nandhukumare@gmail.com>
MOSIP-40791 - Synced latest changes from develop
* [INJICERT-1001]
added additional docs for mosipid usecase compatibility

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* updated readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* [INJICERT-1001]

updated readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* updated readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* updated readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* updated readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* updated readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* changed readme

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

* Update Custom-Plugin-K8s.md

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>

---------

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Signed-off-by: Vishwa <visu.vs1@gmail.com>
inji#316)

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins (inji#315)

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* Update pom.xml

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* Updated Dockerfile

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* Updated pom.xml

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

---------

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins (inji#317)

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* Update pom.xml

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* Updated Dockerfile

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* Updated pom.xml

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

* [MOSIP-41354] Added manual workflow and updated push-trigger workflow for to support the circular dependency from inji-certify-plugins

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>

---------

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>

---------

Signed-off-by: techno-467 <prafulrakhade02@gmail.com>
Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>
Co-authored-by: Praful Rakhade <prafulrakhade02@gmail.com>
Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>
[DSD-7977] release changes

Signed-off-by: Hitesh Jain <jainhitesh9998@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants