From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master
Added vertx.io example app
Vertx.io is a polyglot (Java, JavaScript, Groovy, Ruby, Ceylon, Scala and
Kotlin)
toolkit based on netty and intended to build minimalistic reactive apps on
JVM. Its design
is based on the non-blocking event loop model and in this way is similar to
node.js.
You can read more here http://vertx.io/.
scripts/build image=openjdk8-zulu-compact3-with-java-beans,vertx
Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>
---
diff --git a/vertx/.gitignore b/vertx/.gitignore
--- a/vertx/.gitignore
+++ b/vertx/.gitignore
@@ -0,0 +1,2 @@
+usr.manifest
+vertx-examples/
diff --git a/vertx/Makefile b/vertx/Makefile
--- a/vertx/Makefile
+++ b/vertx/Makefile
@@ -0,0 +1,20 @@
+src = $(shell readlink -f ../..)
+app-dir = $(src)/apps/vertx
+vertx-version = $(shell grep -P "<version>(\d\.)+\d</version>"
vertx-examples/pom.xml | grep -Po "(\d\.)+\d")
+
+all: module
+module: vertx
+
+module: vertx-examples/.git
+ mkdir -p $(app-dir)/vertx-examples/maven-simplest/src/main/resources
+ cp $(app-dir)/vertx-default-jul-logging.properties
$(app-dir)/vertx-examples/maven-simplest/src/main/resources/
+ cd $(app-dir)/vertx-examples/maven-simplest && mvn package
+ echo "/HelloWorld.jar :
$(app-dir)/vertx-examples/maven-simplest/target/maven-simplest-$(vertx-version)-fat.jar"
$(app-dir)/usr.manifest
+
+.PHONY: vertx
+
+vertx-examples/.git:
+ cd $(app-dir) && git clone --depth 1
https://github.com/vert-x3/vertx-examples.git
+
+clean:
+ cd $(app-dir) && rm -rf vertx-examples && rm -f usr.manifest
diff --git a/vertx/README.md b/vertx/README.md
--- a/vertx/README.md
+++ b/vertx/README.md
@@ -0,0 +1,14 @@
+# Vert.x on OSv
+
+Vertx.io is a polyglot (Java, JavaScript, Groovy, Ruby, Ceylon, Scala and
Kotlin)
+toolkit based on netty and intended to build minimalistic reactive apps on
JVM. Its design
+is based on the non-blocking event loop model and in this way is similar
to node.js.
+You can read more here http://vertx.io/.
+
+## Building
+Vert.x requires at least Java 8. It can be run on compact 1 JRE.
+
+Here is how you can build it
+```
+./scripts/build image=openjdk8-zulu-compact3-with-java-beans,vertx
+```
diff --git a/vertx/module.py b/vertx/module.py
--- a/vertx/module.py
+++ b/vertx/module.py
@@ -0,0 +1,5 @@
+from osv.modules import api
+
+api.require('java')
+
+default = api.run('/java.so -Xms64m -Xmx64m
-Dvertx.disableDnsResolver=true -jar HelloWorld.jar')
diff --git a/vertx/vertx-default-jul-logging.properties
b/vertx/vertx-default-jul-logging.properties
--- a/vertx/vertx-default-jul-logging.properties
+++ b/vertx/vertx-default-jul-logging.properties
@@ -0,0 +1,10 @@
+handlers=java.util.logging.ConsoleHandler
+java.util.logging.SimpleFormatter.format=%5$s %6$s\n
+java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
+java.util.logging.ConsoleHandler.level=FINEST
+
+.level=FINEST
+io.vertx.ext.web.level=FINEST
+io.vertx.level=FINEST
+com.hazelcast.level=INFO
+io.netty.util.internal.PlatformDependent.level=FINEST
--
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.
For more options, visit https://groups.google.com/d/optout.