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

Allow omitting DB container #1490

Closed
maddy2101 opened this issue Mar 12, 2019 · 12 comments
Closed

Allow omitting DB container #1490

maddy2101 opened this issue Mar 12, 2019 · 12 comments
Assignees
Labels
Prioritized We expect to do this in an upcoming release

Comments

@maddy2101
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Not really a problem, just ecological and performance related concerns. I'd like not to boot up any database, if my project doesn't call for one.

Describe the solution you'd like
A config option, that allows to omit the configuration and creation of a DB container.

@rfay
Copy link
Member

rfay commented Mar 13, 2019

Could you please say more about the environment in which you don't need a database please?

@t3easy
Copy link
Contributor

t3easy commented Mar 14, 2019

TYPO3 with SQLite Database will not need a mariadb container.

@jfastnacht
Copy link

@maddy2101 Not a config option, but I asked how to do that on Stack Overflow before: https://stackoverflow.com/questions/54252928/running-ddev-without-database

Just in case you need a solution until the issue is solved.

@rfay
Copy link
Member

rfay commented Mar 18, 2019

Just a note about sqlite3: My own experience trying to use it in a multiuser environment with Drupal was dismal, not recommended. Hoping for better with TYPO3!

@rfay rfay changed the title Allow to not create a DB container Allow omitting DB container Mar 18, 2019
@lolli42
Copy link
Contributor

lolli42 commented Mar 19, 2019

+1 to this: I'm using ddev to run TYPO3 and symfony projects. Both run fine with sqlite, and some symfony projects don't even need a db at all. In those cases the db container is unused complexity. It would be great if it could be turned off by allowing 'db' as value for 'omit_containers' config option.

@mglaman
Copy link
Contributor

mglaman commented May 1, 2019

Chiming in: https://contribkanban.com/ is D8 and run on SQLite for ~1 year without problems.

@rfay
Copy link
Member

rfay commented May 1, 2019

It's not too terribly hard to omit the db container. The thing that gets more difficult is re-doing the automatic settings.ddev.php generation and such. And adding new config that tells it that stuff, etc.

@Lefaux
Copy link

Lefaux commented May 6, 2019

I wonder if the scope is important.
I see several usecases described here.

a) The original request which is "My App simply does not need a database".
b) The requests in the sense of "well, I can run project types other than 'PHP' like Drupal or TYPO3 with SQLite (insert random DB backend here)".

Case A seems to be the more prominent one to me.
I currently run 10+ ddev projects based on symfony and none of them needs a DB container.

Case B seems a bit like getting out of ddev's original scope - making things easy for developers.
I guess we can all agree that the "sane" default for TYPO3 is a MariaDB (or MySQL) DB backend.
I could imagine the same being true for Wordpress and Drupal.

So while it's nice that you can run your CMS/App with SQlite or Postgres or Orcale or MSSQL in my opinion this gets out of hand. This is where I'd personally draw the line.
ddev does not offer a SQLite container, nor a Postgres or Oracle or whatever container.
Once you leave the trail ddev provides you with, you're on your own - which I think is a good thing, because you can do your own magic. But that's not ddev's job.
So I don't see it being ddev's duty to create configuration files for non-standard usecases.

@rfay rfay added the Prioritized We expect to do this in an upcoming release label May 8, 2019
@andrewfrench andrewfrench self-assigned this Aug 5, 2019
@andrewfrench
Copy link
Contributor

andrewfrench commented Aug 5, 2019

@Lefaux @rfay
This issue has been dormant for a while, but there were a few conversations at T3DD that lead me to believe this would be a worthwhile addition for many development workflows. There's definitely quite a bit of untangling necessary to make this work, but I'm going to start taking a look.

@rfay
Copy link
Member

rfay commented Aug 5, 2019

Yeah, this is labeled "prioritized" for that same reason. People want it. It's not too hard, it's just that there's start code and stuff that's explicit about the db container.

@rfay
Copy link
Member

rfay commented Aug 5, 2019

Let's make sure to solve the problem with leakage of omit_containers into project config.yaml when working on this, #1456. If we could solve that in a general way, too, we could put more things in global_config.yaml.

@rfay
Copy link
Member

rfay commented Aug 30, 2019

For those of you who have been eager to get this, I'd love to have you try this out and see if it will meet your needs. The artifacts are posted at #1819 (comment) - @Lefaux @lolli42 @maddy2101

@rfay rfay closed this as completed in 22625e2 Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prioritized We expect to do this in an upcoming release
Projects
None yet
Development

No branches or pull requests

8 participants