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

[Enhancement] Add support to choose from existing DB containers #8

Open
6 tasks
Utkar5hM opened this issue Jan 21, 2024 · 0 comments
Open
6 tasks

[Enhancement] Add support to choose from existing DB containers #8

Utkar5hM opened this issue Jan 21, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Utkar5hM
Copy link
Collaborator

Currently, there is no support for choosing from existing DB containers when deploying instances. This can be inconvenient and wasteful, as it requires creating new DB containers for each instance, even if there are already existing containers that can be used.

To address this issue, we propose the following tasks:

  • Create a new model to handle databases that will have a column for repository.
  • Delete DB containers on stop with DB, and only if they are not used by other instances than mentioned.
  • Implement DB cleanup on delete repository.
  • Keep track of DBs with the newly created model.
  • These tasks will enable users to choose from existing DB containers when deploying instances, reducing the need for new containers and improving efficiency.

Tasks completion:

  • A new model is created to handle databases with a column for repository.
  • DB containers are deleted on stop with DB, and only if they are not used by other instances than mentioned.
  • DB cleanup is implemented on delete repository.
  • DBs are tracked with the newly created model.
  • Users can choose from existing DB containers when deploying instances.
  • The code is tested and works as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant