Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add db seed command in docker files #996

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

KulkarniShashank
Copy link
Contributor

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.

Signed-off-by: KulkarniShashank <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
Copy link

sonarcloud bot commented Sep 18, 2024

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

Copy link

sonarcloud bot commented Oct 23, 2024

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

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.

3 participants