Code Monkey home page Code Monkey logo

dynamodb-titan-docker's Introduction

dynamodb-titan-docker

https://hub.docker.com/r/soloman1124/dynamodb-titan/

Dockerfile for the dynamodb-titan-storage as described in https://github.com/awslabs/dynamodb-titan-storage-backend.

The image supports the following environment variable based configurations:

  • DYNAMODB_ENDPOINT: set dynamodb endpoint, e.g. http://dynamodb:8000 or http://dynamodb.ap-southeast-2.amazonaws.com/
  • AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: AWS access credentials for remote dynamodb access
  • DYNAMODB_PREFIX: prefix for the graph related tables (default to v100)

The following shows an example docker-compose.yml file:

app:
  build: .
  links:
    - titan_server
    - dynamodb
  ports:
    - 5000:5000
  volumes:
    - .:/usr/src/app
titan_server:
  image: soloman1124/dynamodb-titan
  links:
    - dynamodb
  environment:
    - DYNAMODB_ENDPOINT=http://dynamodb:8000
  ports:
    - 8182:8182
dynamodb:
  image: peopleperhour/dynamodb:latest
  volumes_from:
    - dynamodb_data
  ports:
    - 8000:8000
  entrypoint:
    - java
    - -Djava.library.path=.
    - -jar
    - DynamoDBLocal.jar
    - -dbPath
    - /var/dynamodb_local
    - -port
    - "8000"
dynamodb_data:
  image: peopleperhour/dynamodb:latest
  volumes:
    - ./.dynamodb_wd:/var/dynamodb_local
  entrypoint: /bin/true

With the example docker compose file, the following are supported:

  • execute the titan server: docker-compose up titan_server
  • execute the gremlin console: docker-compose run titan_server console
  • execute arbitrary script in side of titan server dir: docker-compose run titan_server <script_file>

Connect to AWS DynamoDB

The following show example docker-compose.yml for actual AWS DynamoDB backend:

app:
  build: .
  links:
    - titan_server
  ports:
    - 5000:5000
  volumes:
    - .:/usr/src/app
titan_server:
  image: soloman1124/dynamodb-titan
  environment:
    - DYNAMODB_ENDPOINT=http://dynamodb.ap-southeast-2.amazonaws.com
    - AWS_ACCESS_KEY_ID=
    - AWS_SECRET_ACCESS_KEY=  
  ports:
    - 8182:8182

dynamodb-titan-docker's People

Contributors

soloman1124 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.