-
Notifications
You must be signed in to change notification settings - Fork 85
Miscellaneous Improvements: yq v4; TinkerIoRegistry; cross-platform build #80
Comments
Hi @phreed. The config file change you mentioned can be achieved with the following:
I took a quick look at yq v4 and I agree the new syntax looks more capable. As I mentioned above v3 can solve your problem so I am not 100% sure it is necessary to update but here are my thoughts on what might be a way to do the update while keep the work minimal. It looks like the new syntax would be something like |
Also I missed your suggestion to have the syntax be something like gremlinserver%1 and I am assuming you could have gremlinserver%2, gremlinserver%3, etc. I think that could work as well but the user would have to keep track of the number when adding new envars which could be a bit difficult for the user to keep track of if the envars are coming from different files or given in command line. Regardless of the way this eval method could be implemented I would prefer that we kept the old syntax if possible (e.g. gremlinserver.graphs.graph=...) as another way to edit the config in addition to the more advanced eval method. IMO feels a little more friendly for people just doing basic configuration. |
@mkaisercross There are a few other things that I wanted:
The editing of the janusgraph-foo.properties files had a different syntax than did the gremlin-server.yaml |
Reading this issue again, I think that two of the issues you mentioned don't apply any more or should be handled outside of the Docker image:
Updating to yq v4 is something we should definitely do. I've created a dedicated issue for that: #101. If you want to contribute your changes here, then a PR would of course we welcome! This leaves the suggested move from Bash to Gradle: Could you please create a dedicated issue for that where you describe which scripts you want to migrate (only the build scripts or also the scripts that are used by the container itself, e.g., I'm closing this issue here now as it hasn't seen any activity lately and because I think that it's easier to follow the progress if we have individual issues for these different aspects. Hope this doesn't discourage you, @phreed, and again: Feel free to create an issue for the move from Bash to Gradle and to contribute PRs with your suggested improvements! |
Just the build scripts would be migrated to gradle. |
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?)
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.
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)
The text was updated successfully, but these errors were encountered: