Git Product home page Git Product logo

docker_gremlin_python's Introduction

Docker container for Gremlin 3.4.2 server with Python Client Under Ubuntu OS

This Docker file creates a container running Gremlin Tinkerpop, with a TinkerGraph and configured for use with Python (gremlin-python) under Ubuntu OS. To build it, run the following command:

docker build -t gremlin-container .

The graph database is configured using the files in the "files/" folder. Gremlin server will serve resquests on port 8182. The graph will be saved into a graphson file, each time the server is shut down. It will also try to load the graph from this file (if it exists) each time the server is started. See the TinkerGraph configuration section for more details.

You can then start the container using:

docker run -p 8182:8182 -v ~/:/graph_file -it --name gremlin gremlin-container

The server can be accessed on port 8182 and the graphson file will be saved in the home directory ~/. Alternatively, you can pull the image from DockerHub here.

A demo showing how to access the database with python is provided. Python 3 is required as well as the gremlin-python module (use the version that matches the gremlin-server version.) This module can be installed using:

pip install gremlinpython==3.4.2

To run the demo (and make a minimal test), simply write in the console:

python test_graph.py

docker_gremlin_python's People

Contributors

naveenneelam avatar

Stargazers

 avatar  avatar

Watchers

 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.