platform icon indicating copy to clipboard operation
platform copied to clipboard

refactor: add db seed command in docker files

Open KulkarniShashank opened this issue 1 year ago • 2 comments

What

Refactored the Docker configuration to include the database seed command. This ensures that the database is seeded during the container initialization process, automating the setup required for local development and testing environments.

Why

Seeding the database manually can be error-prone and time-consuming. Automating this step as part of the Docker process improves consistency, reduces human error, and simplifies onboarding for new developers.

How

  • Updated Dockerfile to include the database seed command.
  • Modified the Dockerfiles to ensure the seed step is executed as part of the container startup.
  • Ensured that the seeding process works seamlessly with ts-node and Prisma by using the existing execPromise logic to handle any errors or output.

KulkarniShashank avatar Sep 16 '24 13:09 KulkarniShashank

Quality Gate Failed Quality Gate failed

Failed conditions
15 Security Hotspots
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

sonarqubecloud[bot] avatar Sep 18 '24 06:09 sonarqubecloud[bot]

Quality Gate Failed Quality Gate failed

Failed conditions
15 Security Hotspots
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

sonarqubecloud[bot] avatar Oct 23 '24 11:10 sonarqubecloud[bot]

@KambleSahil3 I think we can close this PR. Can you please confirm?

GHkrishna avatar Jun 06 '25 06:06 GHkrishna

@GHkrishna Yes, this PR can be closed

KambleSahil3 avatar Jun 09 '25 05:06 KambleSahil3

Closing as not required

GHkrishna avatar Jun 09 '25 05:06 GHkrishna