Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

Miscellaneous Improvements: yq v4; TinkerIoRegistry; cross-platform build #80

@phreed

Description

@phreed

I forked the project and am working on several improvements.
https://github.com/babeloff/janusgraph-docker

I would like as many of these to make it into the main repo as possible.
Could I get some guidance on the best way to proceed?)

  • upgrade yq to v4.x
  • add TinkerIoRegistry to the gremlin-server.yaml
  • switch from bash scripts to Gradle
  • remote-objects.yaml

YQ

The new version is much more capable than the prior.
This change leads to an overhaul of docker-entrypoint.sh and expansion of the configuration of docker environment variables e.g. gremlinserver.* -> gremlinserver%1.* (or something like that)

TinkerIoRegistry

The ability to return subgraphs is not possible because the TinkerIoRegistryV3d0 is not included in the gremlin-server.yaml.
This could be overcome with the yq update mentioned above. In the short run the following could be added.

serializers:
...
  - className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0
    config:
      ioRegistries:
        - org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry
        - org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerIoRegistryV3d0
...

Gradle

bash is flaky on Windows.
Gradle works across platforms and has Docker plugins.

remote-objects.yaml

It has the wrong host (localhost rather than janusgraph)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions