Docker images: gremlin-server and gremlin-console

1,609 views
Skip to first unread message

Jean-Baptiste Musso

unread,
May 31, 2017, 6:37:07 PM5/31/17
to gremli...@googlegroups.com, d...@tinkerpop.apache.org
Dear TinkerPop,

I published a couple automatically built Docker images for gremlin-server and gremlin-console (current image tags: latest, 3.2.4, 3.2 and 3):

https://hub.docker.com/r/jbmusso/gremlin-server/
https://hub.docker.com/r/jbmusso/gremlin-console/

I built these because I needed to quickly start different configurations of gremlin-server when developing the gremlin-javascript client.
Source repository: https://github.com/jbmusso/docker-tinkerpop


Start gremlin-server with:

docker run -p 8182:8182 jbmusso/gremlin-server:3.2.4

Defaults to conf/gremlin-server.yaml within that container, or pass another .yaml file:

docker run -p 8182:8182 jbmusso/gremlin-server:3.2.4 conf/gremlin-server-modern.yaml

Mounting your own config .yaml file with docker run -v argument should also work (untested).


You can play with the console this way (make sure you run with the -it flags so Docker don't quit and actually lets you type commands from your shell):

docker run -it jbmusso/gremlin-console:3.2.4

If you want to execute a file located on your host from within a gremin-console container (the following assumes that foobar.groovy file exists in your $HOME dir):

docker run -it -v ~/foobar.groovy:/script/foobar.groovy jbmusso/gremlin-console:3.2.4 -e /script/foobar.groovy



Jean-Baptiste

Benjamin Ricaud

unread,
Jun 6, 2017, 12:22:35 PM6/6/17
to Gremlin-users, d...@tinkerpop.apache.org
Thanks Jean-Baptiste,

I have also done a container for the gremlin-server 3.2.4, configured to be used with gremlin-python:

I noticed that you do not need the IP trick for the server to be accessed. If you set
host: 0
in your gremlin-conf.yaml, (and open the port with -p 8182:8182) you can access the server.
(see my conf files on the github repo).

Best,
Benjamin

Stephen Mallette

unread,
Jun 6, 2017, 12:39:09 PM6/6/17
to Gremlin-users, d...@tinkerpop.apache.org
Would it be interesting to anyone for TinkerPop to have an official docker image? 

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/c8141999-2e9d-4fd3-a763-5630866e5c6b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Josh Perryman

unread,
Jun 6, 2017, 4:07:57 PM6/6/17
to d...@tinkerpop.apache.org, Gremlin-users
I am interested and have been playing around with TinkerPop & Docker, particularly for my Gremlin training. 

For the training I did at DataDay Texas back in January, I had students clone this and run it locally: https://github.com/experoinc/gremlin-lang-intro. It is a bit of a hack, but was sufficient for my purposes. Note that it loads 5 different data sets (classic, modern, the crew, grateful dead, and a "citations" one I got from Ted).

For training purposes my requirements are: 
  - Each student has own graph(s) which are separate from the other students. 
  - Students have ability to "reset" their environment back to a known state.
  - Ability to load known data sets for examples and practice. 
  - Ability to mutate the graph and have mutations persist from one command to the next
  - Overall solution should be as lightweight as possible. 

I would be curious to hear what other requirements are out there. I suspect that there are Proof of Concept use cases where this would be valuable.

I'm also interested in having an image which has a "notebook"-style interface (e.g. Jupyter, Apache Zeppelin). There's a PR from a fellow Experonaut which adds Jupyter to the repo above, but I have been out of the office for the past couple of weeks and haven't evaluated it yet. 

Josh Perryman

Twitter / LinkedIn

Benjamin Ricaud

unread,
Jun 7, 2017, 2:52:26 AM6/7/17
to Gremlin-users, d...@tinkerpop.apache.org

Yes definitely for me. It would be easier for beginners to start using TinkerPop and to try different versions/ different configurations/different graph databases. I had a hard time setting up my gremlin server with gremlin-python (even if it is not so complicated). Reading the Dockerfile and script files also help learning how gremlin works.

Benjamin
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

Florian Hockmann

unread,
Jun 8, 2017, 2:36:45 AM6/8/17
to Gremlin-users, d...@tinkerpop.apache.org
I think official images would be a very good idea as there exist currently a lot of images, especially for Gremlin Server. Users typically search for the official image or just take the image with the most pulls. Images published directly by TinkerPop would get the most attention so users don't end up with some image that isn't actively maintained.

Another advantage of integrating the images in TinkerPop would probably be that the deployment could be integrated into TinkerPop's usual release cycle. So new images can be published directly for each new version.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

Stephen Mallette

unread,
Jun 13, 2017, 4:22:13 PM6/13/17
to Gremlin-users
It sounds as if there is some interest here. I'm going to move this conversation to the dev list to figure out the details. Please follow along there if you are interested.


To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/8cf01027-2ef6-48d5-bc2a-34facea9c0f8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages