Docker support for ConfiguredGraphFactory


Mike Thomsen <mikert...@...>
 

I spent a while today looking through the janusgraph-docker repository on GitHub, and it didn't look like there is a good way to configure a ConfiguredGraphFactory without injecting a custom configuration file. Is that correct?

My general process went like this:

1. Copied the vanilla gremlin-server.yaml and changed graphs to look like this:
graphs: {
    ConfigurationManagementGraph: /etc/opt/janusgraph/configured_graph.properties
}

2. Added a simple properties file that contains a basic setup for CQL + ES that points to the docker hosts for them.

3. Wrapped that with a Dockerfile like this:

FROM janusgraph/janusgraph:latest
COPY gremlin-server.yaml /opt/janusgraph/conf/gremling-server.yaml
COPY configured_graph.properties /etc/opt/janusgraph/configured_graph.properties

When I brought that up with Docker Compose, I got errors saying that the YAML failed to parse and the graphs block that it printed out didn't resemble my configuration file.

Has anyone figured out a good way to make this work?

Thanks,

Mike

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.