From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master
Add graalvm netty plot example to demonstrate more complex example using
isolates
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
diff --git a/graalvm-netty-plot/Makefile b/graalvm-netty-plot/Makefile
--- a/graalvm-netty-plot/Makefile
+++ b/graalvm-netty-plot/Makefile
@@ -0,0 +1,21 @@
+module: netty-plot
+
+GRAAL_VERSION=1.0.0-rc15
+
+netty-plot:
upstream/graalvm-demos/native-netty-plot/target/netty-plot-0.1-jar-with-dependencies.jar
upstream/graalvm-ce-$(GRAAL_VERSION)
+ upstream/graalvm-ce-$(GRAAL_VERSION)/bin/native-image --no-server
-Djava.net.preferIPv4Stack=true -jar
upstream/graalvm-demos/native-netty-plot/target/netty-plot-0.1-jar-with-dependencies.jar
+
+upstream/graalvm-demos/native-netty-plot/target/netty-plot-0.1-jar-with-dependencies.jar:
upstream/graalvm-ce-$(GRAAL_VERSION)
upstream/graalvm-demos/.git
+ cd upstream/graalvm-demos/native-netty-plot && mvn package
+
+upstream/graalvm-demos/.git:
+ mkdir -p upstream
+ cd upstream && git clone --depth 1
https://github.com/graalvm/graalvm-demos.git
+
+upstream/graalvm-ce-$(GRAAL_VERSION):
+ mkdir -p upstream
+ wget -c -O upstream//graalvm-ce-$(GRAAL_VERSION)-linux-amd64.tar.gz
https://github.com/oracle/graal/releases/download/vm-$(GRAAL_VERSION)/graalvm-ce-$(GRAAL_VERSION)-linux-amd64.tar.gz
+ cd upstream && tar xf graalvm-ce-$(GRAAL_VERSION)-linux-amd64.tar.gz
+
+clean:
+ rm -rf netty-plot upstream
diff --git a/graalvm-netty-plot/README.md b/graalvm-netty-plot/README.md
--- a/graalvm-netty-plot/README.md
+++ b/graalvm-netty-plot/README.md
@@ -0,0 +1,2 @@
+This demonstrates running GraalVM [native-netty-plot
app](https://github.com/graalvm/graalvm-demos/tree/master/native-netty-plot)
using isolates on OSv. For more information about the isolates please read
+[this
article](https://medium.com/graalvm/isolates-and-compressed-references-more-flexible-and-efficient-memory-management-for-graalvm-a044cc50b67e).
diff --git a/graalvm-netty-plot/module.py b/graalvm-netty-plot/module.py
--- a/graalvm-netty-plot/module.py
+++ b/graalvm-netty-plot/module.py
@@ -0,0 +1,3 @@
+from osv.modules import api
+
+default = api.run("/netty-plot")
diff --git a/graalvm-netty-plot/usr.manifest
b/graalvm-netty-plot/usr.manifest
--- a/graalvm-netty-plot/usr.manifest
+++ b/graalvm-netty-plot/usr.manifest
@@ -0,0 +1 @@
+/netty-plot: ${MODULE_DIR}/netty-plot
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/osv-dev/00000000000005c252058d370244%40google.com.
For more options, visit https://groups.google.com/d/optout.