Is it okay to include a bin of mongo in an open source project?

Hi,

I’m making a project (made to be a template) that utilize MongoDB a lot, I was wondering if it was okay to include the Community Server MongoDB bin in the source code of my app on github?

If not, what is the best way of including it?

Thanks you a lot :slight_smile:

I am not a lawyer.
I am not a MongoDB employee.
A link to the Server Side Public License follows.
Sections 5 & 6 seem to allow what you want to do, with conditions.

1 Like

However, what you want to do does not make a lot of sense to me.
It’s hard enough to install and configure MongoDB and there are always site peculiarities.
Seems like it would be better in your open source project just to point to the installation page on the MongoDB website.
As I said, I’m neither a lawyer nor a MongoDB employee. But I am an open source author!

3 Likes

Your application should work independently from the type of MongoDB installation. What happens if your customer - for whatever reason - decides to use MongoDB Atlas (MongoDB Cloud service) instead of locally managed MongoDB? Or if a customer has high demands on availability or huge load and decides to use a ReplicaSet or even a Sharded Cluster? Or your customer may enforce certificate based authentication for compliance rules? etc.

2 Likes

When reading a bit the license, the conditions seems fair to me so thanks for your response.
I was thinking about including a copy of mongodb inside my project to simplify the process to new dev, it’s a template with everything already setup ready to work on. Do you think it would be better to not include it? :thinking:

Anyway, thanks you a lot for your response, it’s not like stackoverflow here :joy:

1 Like

Thank you … since you ask, it seems to me that it would be better to document guidelines of how the user should set up MongoDB than try to prepackage it. Everyone has different security requirements, for instance. MongoDB is not that hard to set up, and here in the forums, it will be easier to support your users with that task, setting up MongoDB, than trying to debug what doesn’t work for them if you have prepackaged it :wink:
Glad you like the forums. It’s very cozy and focused around here.

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.