MongoDB for general usage
-
@jamesgallagher Welcome back
For general usage, if you are looking to host an app that uses mongo, this is easy to do - https://docs.cloudron.io/custom-apps/tutorial/ . This way your app has access to mongodb. If you are looking to access the mongodb of an existing app, maybe you can use an ssh tunnel for this (for example, maybe you want to connect it to your IDE)? Something like https://forum.cloudron.io/topic/3237/remote-sql-support-on-a-per-app-basis/2 .
The case which we aren't supporting right now is where you want to host an app outside Cloudron and provision a database inside Cloudron. This is almost like having a managed database. Is this the case what you are after?
-
This does seem similar to my managed DB request, if thats what OP is asking. From a developer standpoint I like it but mostly because I want to be able to specifically host CouchDB (for those sweet sweet realtime connections to the DB)
-
That raises maybe two options. One a mongodb app, with maybe some mongodb webui to manage the database freely without exposing the addon mongodb. The other option is the exposure of the addon mongodb instance, which I think would not be a good idea, plus in that case the user would not get full access to the database to configure it.
-
Yes, I'm effectively looking for a managed DB on the cheap (CouchDB may come onto my horizon too @atrilahiji - this is an area I'm getting into a bit more lately)
I'll definitely look at your suggestion @girish and I like your lines of thought @nebulon
Nice suggestion @marcusquinn but it's not quite what I'm looking for this time around.
-
@jamesgallagher and @atrilahiji Yeah, I've run across maybe two or three apps recently that use PouchDB, which needs a public instance of CouchDB in order to sync their data. I have no idea if we should package CouchDB for cloudron as an app, but it sure seems like it could be useful.
-
Hey, I've (mostly) packaged MongoDB for use on Cloudron, I am happy to share/add it to a GitLab repo.
@girish Would it be ok to get a repo created for this? If you feel this is not something suited for Cloudron and don't want it on the App Store, I understand.
Cheers
Ross
-
@rossmaclean Sure! Would be great to have others test this out. Do you need anything from me? If you can tell me your git.cloudron.io handle, I can bump the repo count so you can create repos there.
-
Keep in mind that MongoDB has a quite specific license now (SSPL) and offering MongoDB as a service has several implications as it might βinfectβ code using said service: https://www.mongodb.com/licensing/server-side-public-license/faq
Section 13 of the SSPL reads as follows:
a. βIf you make the functionality of the Program or a modified version available to third parties as a service, you must make the Service Source Code available via network download to everyone at no charge, under the terms of this License. Making the functionality of the Program or modified version available to third parties as a service includes, without limitation, enabling third parties to interact with the functionality of the Program or modified version remotely through a computer network, offering a service the value of which entirely or primarily derives from the value of the Program or modified version, or offering a service that accomplishes for users the primary purpose of the Software or modified version.β
b. βService Source Codeβ means the Corresponding Source for the Program or the modified version, and the Corresponding Source for all programs that you use to make the Program or modified version available as a service, including, without limitation, management software, user interfaces, application program interfaces, automation software, monitoring software, backup software, storage software and hosting software, all such that a user could run an instance of the service using the Service Source Code you make available.β
-
@necrevistonnezr there are better options
-
@girish great thanks, my handle is the same as here (@rossmaclean)
-
@rossmaclean you should be set now.
-
@girish Thanks! I've just created a personal repo (https://git.cloudron.io/rossmaclean/mongodb-app) which I assume I would then "move" to the Cloudron project later is that correct?
I need to wait for my work to approve my Open Source request, which I couldn't raise until I had the repo url. This could take up to two week, but I'll push my code as soon as it is approved.
What is the process for getting code reviews etc? e.g. if I want someone to take a look at what I've got so far, who are the best people to ask and where is the best place to reach them?
Cheers
-
@rossmaclean yes, once we publish the app in our app library we will move that repo. Usually the original packager will retain push rights if wanted though.
I guess if you want us to review a change, you could start an issue in that repo and tag us (@girish / @nebulon / ...) there. There is no formal process in place yet, so whatever works for you and notifies us
-
Chat GPT take on this one.
Take the cloudron license... If I were to package an open source admin interface for mongo, and publish it on cloudron would it violate cloudron it's self? the operating system?
The Cloudron license is a proprietary license that governs the use and distribution of the Cloudron software platform. The license terms do not specifically address the use or distribution of software that interacts with MongoDB or any other database software.
If you were to package an open-source admin interface for MongoDB and publish it on Cloudron, it is unlikely that you would be violating the Cloudron license itself, as long as you comply with the terms of the license. However, you would need to ensure that you have the necessary rights to distribute the open-source admin interface and that it is compatible with the MongoDB SSPL license.
As for the operating system, it would depend on the specific license terms for the operating system and any other software components that you use to package and distribute the MongoDB admin interface. You would need to ensure that you comply with all applicable license terms and any restrictions on the use or distribution of open-source software components.
In summary, you should carefully review the license terms for all software components that you use to package and distribute the MongoDB admin interface, including the Cloudron license, the MongoDB SSPL license, and any applicable open-source licenses for the software components. It is important to ensure that you have the necessary rights to distribute the software and that you comply with all license terms and restrictions.
-
@roofboard this is nice sounding word salad nonsense
ChatGPT does have its limits.