kirill-stepanishin commented on code in PR #3213: URL: https://github.com/apache/tinkerpop/pull/3213#discussion_r2371328397
########## docs/src/reference/gremlin-variants.asciidoc: ########## @@ -1263,19 +1278,60 @@ execute it. === Application Examples The TinkerPop source code contains some sample applications that demonstrate the basics of Gremlin-Java. They -can be found in GitHub link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-driver/src/main/java/examples/[here]. +can be found in GitHub link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-driver/src/main/java/examples/[here] +and are designed to connect to a running <<gremlin-server,Gremlin Server>> configured with the +`conf/gremlin-server.yaml` and `conf/gremlin-server-modern.yaml` files as included with the standard release packaging. + +There are two ways to run Gremlin Server for these examples: -The remote connection examples in particular are designed to connect to a running <<gremlin-server,Gremlin Server>> -configured with the `conf/gremlin-server.yaml` file as included with the standard release packaging. +- *Running locally* – see the <<gremlin-server,Gremlin Server>> documentation. +- *Running with Docker*: -To do so, download an image of Gremlin Server from Docker Hub, then launch a new container with `docker run`: [source,shell] ---- docker pull tinkerpop/gremlin-server +---- + +Clean server: + +[source,shell] +---- docker run -d -p 8182:8182 tinkerpop/gremlin-server ---- -All examples can then be run using your IDE of choice. +Modern toy graph server: + +[source,shell] +---- +docker run -d -p 8182:8182 tinkerpop/gremlin-server conf/gremlin-server-modern.yaml +---- + +==== Prerequisites +- Java 11 (JDK) installed Review Comment: Applied to all GLV prerequisites, thank you -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
