mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-13 22:02:28 +00:00
Adding a container for the Titan graph database distribution
This commit is contained in:
parent
029e7d8974
commit
716ff66b1b
3 changed files with 38 additions and 0 deletions
17
titan-gremlin/Dockerfile
Normal file
17
titan-gremlin/Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM itzg/ubuntu-openjdk-7
|
||||
|
||||
MAINTAINER itzg
|
||||
|
||||
RUN apt-get install -y wget unzip
|
||||
|
||||
RUN wget -q -O /tmp/titan.zip http://s3.thinkaurelius.com/downloads/titan/titan-0.5.0-hadoop2.zip
|
||||
RUN unzip /tmp/titan.zip -d /opt && rm /tmp/titan.zip
|
||||
|
||||
ENV TITAN_HOME /opt/titan-0.5.0-hadoop2
|
||||
WORKDIR $TITAN_HOME
|
||||
|
||||
VOLUME ["/conf","/data"]
|
||||
ADD start-gremlin.sh /opt/start-gremlin.sh
|
||||
|
||||
CMD ["/bin/bash", "-e", "/opt/start-gremlin.sh"]
|
||||
|
14
titan-gremlin/README.md
Normal file
14
titan-gremlin/README.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
Runs the Gremlin console from the Titan Graph Database "all" distribution.
|
||||
|
||||
To start the Gremlin console with the default configuration files available:
|
||||
|
||||
docker run -it itzg/titan-gremlin
|
||||
|
||||
In order to adjust or further define property files to use within Gremlin,
|
||||
attach a host directory to the container's `/conf` such as
|
||||
|
||||
docker run -it -v $(pwd)/conf:/conf itzg/titan-gremlin
|
||||
|
||||
After running once your host directory will be populated with the distribution-default
|
||||
configuration files. Modify those or add to them and they will available during
|
||||
the next use of gremlin.
|
7
titan-gremlin/start-gremlin.sh
Executable file
7
titan-gremlin/start-gremlin.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $(ls /conf|wc -l) = 0 ]; then
|
||||
cp -r $TITAN_HOME/conf/* /conf
|
||||
fi
|
||||
|
||||
$TITAN_HOME/bin/gremlin.sh
|
Loading…
Reference in a new issue