Giter Site home page Giter Site logo

docker-orientdb's Introduction

docker-orientdb

Docker Hub

This repository is used to create an OrientDB Docker image. This image is based on Phusion Baseimage to provide base OS and supervision support.

Running orientdb

The docker image contains a unconfigured orientdb installation and for running it you need to provide your own config folder from which OrientDB will read its startup settings. To get an initial set of configurations from this setup, you can do something like the following:

# Run the container stock with no volumes mounted
docker run --name orientdb -d broadinstitute/orientdb:latest
# Go to the path that will eventually hold your configs
cd $CONFIG_PATH
# Copy the config directory from the stock container
docker cp orientdb:/opt/orientdb/config .
# Move all the files from that local "config" directory up a level
mv config/* .
# Remove the temporary "config" directory
rmdir config

The directory at $CONFIG_PATH should now have a copy of the stock config files that you can now edit to suit your own needs. To start OrientDB using volume mounts to keep your data safe outside the container, run:

docker run --name orientdb -d \
  -v $CONFIG_PATH:/opt/orientdb/config \
  -v $DATABASES_PATH:/opt/orientdb/databases \
  -v $BACKUP_PATH:/opt/orientdb/backup \
  -p 2424 -p 2480 broadinstitute/orientdb:latest

The same applies for the databases folder which if local to the running container would go away as soon as it died/you killed it.

The backup folder only needs to be mapped if you activate that setting on your OrientDB configuration file.

For more Docker information from the makers of OrientDB, check out https://github.com/orientechnologies/orientdb-docker/wiki.

Included in this repository is also a docker-compose.yml file for use with Docker Compose that will make running the container much easier.

Running the orientdb console

docker run --rm -it \
  -v $CONFIG_PATH:/opt/orientdb/config \
  -v $DATABASES_PATH:/opt/orientdb/databases \
  -v $BACKUP_PATH:/opt/orientdb/backup \
  broadinstitute/orientdb:latest \
  /opt/orientdb/bin/console.sh

or, if you already have OrientDB running with the correct volume mounts, etc. (assumed to be named orientdb in this example) and just want to run the console from the running container:

docker exec -it \
  orientdb \
  /opt/orientdb/bin/console.sh

docker-orientdb's People

Contributors

coreone avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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