-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerize gremlin-server.sh & JanusGraph with docker plugin
Signed-off-by: Alexander Patrikalakis <amcp@amazon.co.jp>
- Loading branch information
Alexander Patrikalakis
committed
Jun 6, 2017
1 parent
6ada268
commit 8ea98ff
Showing
9 changed files
with
138 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM openjdk:8 | ||
|
||
ENV PATH "$JAVA_HOME/bin:$PATH" | ||
RUN apt-get update -y && apt-get install -y zip | ||
WORKDIR /var | ||
|
||
ARG server_zip | ||
ARG server_base | ||
ADD ${server_zip} /var | ||
RUN unzip -q ${server_base}.zip && ln -s ./${server_base} ./janusgraph | ||
WORKDIR /var/janusgraph | ||
EXPOSE 8182 | ||
CMD ["./bin/gremlin-server.sh", "./conf/gremlin-server/gremlin-server-berkeleyje.yaml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
janusgraph-dist/src/assembly/static/conf/gremlin-server/gremlin-server-berkeleyje.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
host: localhost | ||
port: 8182 | ||
scriptEvaluationTimeout: 30000 | ||
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer | ||
graphs: { | ||
graph: conf/gremlin-server/janusgraph-berkeleyje-es-server.properties} | ||
plugins: | ||
- janusgraph.imports | ||
scriptEngines: { | ||
gremlin-groovy: { | ||
imports: [java.lang.Math], | ||
staticImports: [java.lang.Math.PI], | ||
scripts: [scripts/empty-sample.groovy]}} | ||
serializers: | ||
- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }} | ||
- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0, config: {ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }} | ||
- { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true }} | ||
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }} | ||
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }} | ||
- { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }} | ||
processors: | ||
- { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }} | ||
- { className: org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor, config: { cacheExpirationTime: 600000, cacheMaxSize: 1000 }} | ||
metrics: { | ||
consoleReporter: {enabled: true, interval: 180000}, | ||
csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv}, | ||
jmxReporter: {enabled: true}, | ||
slf4jReporter: {enabled: true, interval: 180000}, | ||
gangliaReporter: {enabled: false, interval: 180000, addressingMode: MULTICAST}, | ||
graphiteReporter: {enabled: false, interval: 180000}} | ||
maxInitialLineLength: 4096 | ||
maxHeaderSize: 8192 | ||
maxChunkSize: 8192 | ||
maxContentLength: 65536 | ||
maxAccumulationBufferComponents: 1024 | ||
resultIterationBatchSize: 64 | ||
writeBufferLowWaterMark: 32768 | ||
writeBufferHighWaterMark: 65536 | ||
ssl: { | ||
enabled: false} |
14 changes: 14 additions & 0 deletions
14
...h-dist/src/assembly/static/conf/gremlin-server/janusgraph-berkeleyje-es-server.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# JanusGraph configuration sample: BerkeleyDB JE and embedded Elasticsearch | ||
# | ||
# This file opens a BDB JE instance in the directory | ||
# db/berkeley. It also starts a local Elasticsearch | ||
# service inside the same JVM running JanusGraph, persisted at | ||
# db/es. | ||
|
||
gremlin.graph=org.janusgraph.core.JanusGraphFactory | ||
storage.backend=berkeleyje | ||
storage.directory=db/berkeley | ||
index.search.backend=elasticsearch | ||
index.search.directory=db/es | ||
index.search.elasticsearch.client-only=false | ||
index.search.elasticsearch.local-mode=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters