Openshift cartridge for orientdb

174 views
Skip to first unread message

dan elebash

unread,
Dec 2, 2014, 9:53:23 AM12/2/14
to orient-...@googlegroups.com
Came across this cartridge from Jonathan Frazier which is a forked from Jelastics, anyway it works well.  Thanks Jelastic, Jonathan!!!

You first have to have a cartridge that exposes the web_app and then you add this as a database, same way as you would mysql.  This behavior can be changed in the yml config if you want to expose orientdb directly to the web.  Ie so that you can use orientdb's as a public rest server.

Here are the steps to create via openshift's web interface

1) In your applications tab choose create new application
2)In type of application scroll to bottom and choose Do-it-youself 0.1 or Php or any cartridge that exposes a web_app external port
3) If you choose diy, then on the next page fill in public url to whatever you want and click create application
4) It will ask you if you will be changing the code of application, choose no not now
5)Once your app is setup from the bottom of the screen click see a list of cartridges you can add 
6)Scroll to the very bottom left side where it says Install your own cartridge and paste in the RAW link to the yml file
  To get the raw yml link do this: In a new browser tab navigate to the github repository here then click on the metadata folder, then click the manifest.yml file, then click on the raw button located in the upper right corner of the editor window, a new window will open, copy the url.
7) Go back to the openshift tab, to the Install your own cartridge and paste the yml link
8)Click next then click add cartridge
9)After install it will give you a page with the username and password plus the internal port to connect to orientdb, this is what you would use to connect from a Php application, ie if you choose Php as your web_application gear instead of DIY

That should be it, to verify assuming you installed the opshift rhc client tools on your pc you can do a port forward from you client machine and access orient db either via console or web interface.  Note:  I could not connect to orientdb using the console via ssh, openshift will not let you run shell scripts.  But testing remotely from client pc using port-forward worked fine.

To test open a cmd line and type rhc port-forward -a yourappname
It will show you a list of Local ports mapped to open-shift internal ports
you should see a listing for orientdb and orientdb_web, open a web browser and connect to the local oreintdb_web or connect via console

Also note when I connected to the orientdb_web interface the default password was still admin, even though it was set to be auto-generated by the cartridges installer script.

Luca Garulli

unread,
Jan 21, 2015, 8:01:55 AM1/21/15
to orient-database
Thanks Dan for this guide. Did you test it only on OpenShift?

Lvc@


--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Elebash

unread,
Feb 18, 2015, 6:45:22 PM2/18/15
to orient-...@googlegroups.com
Yes, I only tested this with OpenShift

--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/rGEbRdWhWqc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages