-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix Zync dependency on PostgreSQL #17
Comments
It makes sense to add a zync-postgres container to |
idk, this is part of Zync Quickstart guide: I have this container and use it for porta database when I want porta on postgres. The situation is very similar with MySQL and porta. Why run MySQL separately and not controlled by porta-dev-tools? Why run Redis separately and not as part of porta-dev-tools? The 3 databases historically are manual to control. I think we better have a strategy to all of them, not single out postgres especially because it is useful as a porta database too. |
Yeah that makes sense, so what if we decide to use mysql for our development environment, we configure zync to connect to mysql and launch both mysql and redis from porta-dev-tools? What's the point of controlling the DBs manually?, to have the ability to switch between them? If that's the case I think we can handle that using porta-dev-tools as well, since we can configure the DBs through environment variables |
Here some thoughts on your questions. I think people prefer different ways to install DBs. But a more important reason to control manually is that I want DB running all the time. When I run tests locally from IDE or console, they still use the same DB. Another important requirement for me is that databases be not wiped out on restart. Presently porta-dev-tools managed containers are created and destroyed, which resets them completely. Also you can't use zync with MySQL. But you can use porta with Postgres. Also we shouldn't enforce using same database for both. And we should allow running porta with any of the supported DBs. In the case of Oracle, restarting the DB is slow. So starting and stopping all the time is suboptimal and more importantly - unreliable (we don't have a clear indication of when it becomes ready). In summary, it seems to be a complicated thing. It's nice if porta-dev-tools can help with the databases. Existing use cases should be considered carefully though. btw presently I use all DBs in a podman container. So if you come up with an approach to create and control them from porta (but not automatically wipe them out), that could be useful. |
Then, what if we create a new porta command to launch DBs containers?
Besides, the current
|
Attaching a volume was a problem for oracle. Easiest is start/stop containers with their loal volumes. They get cleaned of container is removed. I would suggest commands
|
OK, as long as a volume is used the data persists.
Are there other examples in porta-dev-tools where there's a command to |
|
I forgot about this. I'd do it this way, to match
Also
|
Zync needs a postgres instance available in the host, otherwise
porta deps
won't work. That forces the host to either:porta deps
porta-dev-tools
less convenientporta deps
I suggest to launch the postgres container automatically before zync, so
porta deps
just works without any previous required step.The text was updated successfully, but these errors were encountered: