You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2019/07/04 14:14:31 UTC

[sling-whiteboard] branch master updated: fix README

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 0f44db7  fix README
0f44db7 is described below

commit 0f44db71cfca16a0d60956ffb6b40998450de3b5
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Jul 4 16:14:27 2019 +0200

    fix README
---
 graalvm/README.md | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/graalvm/README.md b/graalvm/README.md
index 6f3e603..3bf5a17 100644
--- a/graalvm/README.md
+++ b/graalvm/README.md
@@ -10,7 +10,11 @@ To build and run the native version, setup GraalVM to get something like this:
     OpenJDK Runtime Environment (build 1.8.0_212-20190523183630.graal2.jdk8u-src-tar-gz-b03)
     OpenJDK 64-Bit GraalVM CE 19.0.2 (build 25.212-b03-jvmci-19-b04, mixed mode)
 
-Then build with 
+Then install the `native-image` tool:
+
+    gu install native-image
+
+And build with 
 
     export GRAALVM_HOME=$JAVA_HOME
     mvn clean install -Pnative
@@ -19,12 +23,18 @@ And run with
 
     ./target/org.apache.sling.graalvm.experiments-1.0-SNAPSHOT-runner
     
-At which point the `/hello` path works:
-
-    curl http://localhost:8080/hello
-    Hello, at Mon Jul 01 17:38:00 CEST 2019
-
-To run as a Docker container see `src/main/docker/Dockerfile.native`
+At which point the server should work:
+
+    $ curl -s http://localhost:8080/sling/chouc/route
+    {
+      "path": "/sling/chouc/route",
+      "metadata": {
+        "sling.resolutionPath": "/sling/chouc/route",
+        "sling.resolutionPathInfo": "/sling/chouc/route"
+      }
+    }
+
+To run as a Docker container see the [Dockerfile.native](./src/main/docker/Dockerfile.native) file.
 
 ## TODO
 Running in **quarkus:dev mode fails so far** ("no SCR metadata found"), even if