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

NoMongo: Seamless Database Importation Script for Docker #3227

Closed
palisadoes opened this issue Feb 17, 2025 · 5 comments
Closed

NoMongo: Seamless Database Importation Script for Docker #3227

palisadoes opened this issue Feb 17, 2025 · 5 comments
Assignees
Labels
feature request unapproved Unapproved for Pull Request

Comments

@palisadoes
Copy link
Contributor

palisadoes commented Feb 17, 2025

Develop-Postgres Branch!

Is your feature request related to a problem? Please describe.

  1. We need a script that automatically imports the sample database into the MongoDB database when running Docker
  2. The script must not be interactive. The user needs to be able to run it from the operating system command line using a single command.
  3. Currently, the following 3 steps need to be run using the .env.devcontainer file.
    docker exec -it talawa-api-1 /bin/bash
    pnpm run import:sample-data
    exit
    
  4. This is to streamline the provisioning of a sister site to: https://demo.talawa.io

Describe the solution you'd like

  • See above

Describe alternatives you've considered

  • N/A

Approach to be followed (optional)

  • See above

Additional context

Related issues:

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@1709RPS
Copy link

1709RPS commented Feb 17, 2025

Please Assign @palisadoes

@palisadoes
Copy link
Contributor Author

@JaiPannu-IITI With your latest PR, is this necessary any more?

@palisadoes
Copy link
Contributor Author

  1. Can your script differentiate between the .env.ci and the other environment files?
  2. We need to make sure that we don't overwrite a production DB. For example is the test/dev DB name different from production?

@JaiPannu-IITI
Copy link

Sir it can be resolved if you like, the script we have made can handle this if called while setting up container

@palisadoes
Copy link
Contributor Author

CLosing as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request unapproved Unapproved for Pull Request
Projects
Archived in project
Development

No branches or pull requests

3 participants