che icon indicating copy to clipboard operation
che copied to clipboard

How to install and Run Mongodb

Open lopster568 opened this issue 6 years ago • 9 comments

Hi, I'm a beginner and I'm trying to install and run mongodb on Eclipse Che. I'm using express and nodejs. I've tried several methods but they are not working. The course that I'm following used ./monogod command to run the mongodb but I can't seem to do the same. I tried https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ this manual but I cannot create /etc/yum.repos.d/mongodb-org-4.2.repo as it returns an error that access is denied. Please Help!!!

lopster568 avatar Mar 18 '20 06:03 lopster568

@Aarav568 It is needed to create a container with mongodb. Have a look at our samples: nodejs + mongo [1], java + mongo [2]

[1] https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/nodejs-mongo [2] https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/java-mongo

tolusha avatar Mar 18 '20 06:03 tolusha

@Aarav568 It is needed to create a container with mongodb. Have a look at our samples: nodejs + mongo [1], java + mongo [2]

[1] https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/nodejs-mongo [2] https://github.com/eclipse/che-devfile-registry/tree/master/devfiles/java-mongo

Sorry, I didn't get it. I'm using nodejs. I've never worked with containers.

lopster568 avatar Mar 18 '20 06:03 lopster568

I guess there is misunderstanding somewhere Could you elaborate more on

I'm trying to install and run mongodb on Eclipse Che

What do you mean?

tolusha avatar Mar 18 '20 07:03 tolusha

What do you mean?

I just want to run a mongodb server and create a database. I'm following a course in which the mongo server is installed on Cloud9.io but sadly, it no longer works so I'm using Eclipse Che and I cannot run Mongo server by using the same method.

I want a running server, that looks something like this: https://www.dropbox.com/s/ikruef1dfcznazf/git.png?dl=0

lopster568 avatar Mar 18 '20 07:03 lopster568

Where did you Eclipse Che? Have you installed it locally? https://www.eclipse.org/che/docs/che-7/running-che-locally/

tolusha avatar Mar 18 '20 07:03 tolusha

No. It's online. https://che.openshift.io/dashboard/

lopster568 avatar Mar 18 '20 07:03 lopster568

https://che.openshift.io/dashboard/#/getstarted And create a sample with mongo.

It is basically all about devfiles https://redhat-developer.github.io/devfile/ I would like to recommend read this first to understand to conception

tolusha avatar Mar 18 '20 07:03 tolusha

Hi @Aarav568

Could you connect your https://che.openshift.io/dashboard/ to MongoDB? I tried with the devfile guide but I couldn't. I think we are taking the same course online, cause in mine's the profesor uses C9 too!

Thanks!

soyjne avatar Apr 21 '20 19:04 soyjne

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar Oct 28 '20 08:10 che-bot