mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-26 15:40:30 +00:00
Adding a container for the Titan graph database distribution
This commit is contained in:
@@ -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"]
|
||||||
|
|
||||||
@@ -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.
|
||||||
Executable
+7
@@ -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
|
||||||
Reference in New Issue
Block a user