Giter Club home page Giter Club logo

gremlin-console-docker's Introduction

Gremlin Console

This Docker image contains the Gremlin Console (running on Java 8). It also allows configuration via the /conf directory, and has another volume mounted, where you can export and import data.

Run the console

To run the console, and mount the configuration and data directories (~/temp/gremlin-conf/ and ~/temp/gremlin-data, respectively), run the following command:

docker run -v ~/temp/gremlin-data:/opt/gremlin/data -v ~/temp/gremlin-conf:/opt/gremlin/conf/extra  --rm -it cruftlab/gremlin-console

Configuration volume

You can mount configurations in the /opt/gremlin/data/extra volume. Here are a few examples of what you can do:

Data volume

You can use the data volume to export and import data to your database. In the following examples ~/temp/gremlin-data is mounted to /opt/gremlin/data.

Read the docs for more information on how to use this volume, or read the examples below.

Export graph

To export the "Modern" graph as GraphSON, run the following command in the console:

graph = TinkerFactory.createModern()
graph.io(graphson()).writeGraph("data/tinkerpop-modern.json")

The "Modern" graph will now be available in GraphSON format in ~/temp/gremlin-data/tinkerpop-modern.json

Import graph

To import a graph from a GraphSON file, stored under ~/temp/gremlin-data/my-graph.json, run the following command in the console:

graph = TinkerGraph.open();
graph.io(graphson()).readGraph("data/my-graph.json");

gremlin-console-docker's People

Contributors

loket avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.