Working with Nashorn in this example. Loading a config.json file sitting in $VERTICLE_HOME/conf/config.json
{
"variables": {
"vertx.version": "3.5.1"
},
"dependencies": [
{
"groupId": "io.vertx",
"artifactId": "vertx-config",
"version": "${vertx.version}",
"included": true
}
{
"groupId": "io.vertx",
"artifactId": "vertx-core",
"version": "${vertx.version}",
"included": true
},
{
"groupId": "io.vertx",
"artifactId": "vertx-lang-js",
"version": "${vertx.version}",
"included": true
},
{
"groupId": "io.vertx",
"artifactId": "vertx-web",
"version": "${vertx.version}",
"included": true
},
{
"groupId": "io.vertx",
"artifactId": "vertx-hazelcast",
"version": "${vertx.version}",
"included": true
}
]
}
{"java.runtime.name":"OpenJDK Runtime Environment","sun.boot.library.path":"/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64","java.vm.version":"25.151-b12","java.vm.vendor":"Oracle Corporation","java.vendor.url":"http://java.oracle.com/","path.separator":":","java.vm.name":"OpenJDK 64-Bit Server VM","file.encoding.pkg":"sun.io","java.util.logging.config.file":"/usr/verticles/logging.properties","user.country":"US","sun.java.launcher":"SUN_STANDARD","sun.os.patch.level":"unknown","java.vm.specification.name":"Java Virtual Machine Specification","user.dir":"/usr/verticles","java.runtime.version":"1.8.0_151-b12","java.awt.graphicsenv":"sun.awt.X11GraphicsEnvironment","java.endorsed.dirs":"/usr/lib/jvm/java-1.8-openjdk/jre/lib/endorsed","os.arch":"amd64","java.io.tmpdir":"/tmp","line.separator":"\n","vertx.home":"/usr/local/vertx","java.vm.specification.vendor":"Oracle Corporation","os.name":"Linux","vertx.cli.usage.prefix":"vertx","sun.jnu.encoding":"UTF-8","java.library.path":"/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib","io.netty.noJdkZlibDecoder":false,"sun.nio.ch.bugLevel":"","java.specification.name":"Java Platform API Specification","java.class.version":52,"vertx.clusterManagerFactory":"io.vertx.spi.cluster.impl.hazelcast.HazelcastClusterManagerFactory","sun.management.compiler":"HotSpot 64-Bit Tiered Compilers","os.version":"4.9.60-linuxkit-aufs","user.home":"/root","user.timezone":"America/Montreal","java.awt.printerjob":"sun.print.PSPrinterJob","java.specification.version":1.8,"file.encoding":"UTF-8","user.name":"root","java.class.path":":/usr/local/vertx/conf:/usr/local/vertx/lib/netty-codec-4.1.19.Final.jar:/usr/local/vertx/lib/netty-codec-http2-4.1.19.Final.jar:/usr/local/vertx/lib/hazelcast-3.8.2.jar:/usr/local/vertx/lib/vertx-hazelcast-3.5.1.jar:/usr/local/vertx/lib/vertx-web-3.5.1.jar:/usr/local/vertx/lib/mvel2-2.3.1.Final.jar:/usr/local/vertx/lib/netty-codec-http-4.1.19.Final.jar:/usr/local/vertx/lib/vertx-lang-js-3.5.1.jar:/usr/local/vertx/lib/vertx-stack-manager-3.5.1.jar:/usr/local/vertx/lib/netty-common-4.1.19.Final.jar:/usr/local/vertx/lib/vertx-core-3.5.1.jar:/usr/local/vertx/lib/vertx-bridge-common-3.5.1.jar:/usr/local/vertx/lib/vertx-docgen-3.5.1.jar:/usr/local/vertx/lib/netty-transport-native-unix-common-4.1.19.Final.jar:/usr/local/vertx/lib/netty-handler-4.1.19.Final.jar:/usr/local/vertx/lib/netty-resolver-4.1.19.Final.jar:/usr/local/vertx/lib/netty-transport-4.1.19.Final.jar:/usr/local/vertx/lib/jackson-annotations-2.9.0.jar:/usr/local/vertx/lib/netty-resolver-dns-4.1.19.Final.jar:/usr/local/vertx/lib/vertx-codetrans-3.5.1.jar:/usr/local/vertx/lib/vertx-auth-common-3.5.1.jar:/usr/local/vertx/lib/kotlin-stdlib-1.2.20.jar:/usr/local/vertx/lib/vertx-config-3.5.1.jar:/usr/local/vertx/lib/netty-transport-native-kqueue-4.1.19.Final.jar:/usr/local/vertx/lib/netty-transport-native-epoll-4.1.19.Final.jar:/usr/local/vertx/lib/annotations-13.0.jar:/usr/local/vertx/lib/vertx-codegen-3.5.1.jar:/usr/local/vertx/lib/jackson-databind-2.9.3.jar:/usr/local/vertx/lib/netty-buffer-4.1.19.Final.jar:/usr/local/vertx/lib/netty-codec-socks-4.1.19.Final.jar:/usr/local/vertx/lib/netty-codec-dns-4.1.19.Final.jar:/usr/local/vertx/lib/jackson-core-2.9.3.jar:/usr/local/vertx/lib/netty-handler-proxy-4.1.19.Final.jar:/usr/local/vertx/lib/jsoup-1.11.2.jar","java.vm.specification.version":1.8,"sun.arch.data.model":64,"java.home":"/usr/lib/jvm/java-1.8-openjdk/jre","sun.java.command":"io.vertx.core.Launcher run cam-worker.js -cp /usr/verticles/Dockerfile /usr/verticles/cam-worker.js /usr/verticles/cluster.xml /usr/verticles/conf /usr/verticles/config.json /usr/verticles/logging.properties /usr/verticles/verticles /usr/verticles/vertx-stack.json","java.specification.vendor":"Oracle Corporation","user.language":"en","awt.toolkit":"sun.awt.X11.XToolkit","java.vm.info":"mixed mode","java.version":"1.8.0_151","java.ext.dirs":"/usr/lib/jvm/java-1.8-openjdk/jre/lib/ext:/usr/java/packages/lib/ext","sun.boot.class.path":"/usr/lib/jvm/java-1.8-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8-openjdk/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8-openjdk/jre/classes","java.vendor":"Oracle Corporation","file.separator":"/","java.vendor.url.bug":"http://bugreport.sun.com/bugreport/","sun.cpu.endian":"little","sun.io.unicode.encoding":"UnicodeLittle","sun.cpu.isalist":"","PATH":"/usr/local/vertx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin","VERTX_HOME":"/usr/local/vertx","JAVA_HOME":"/usr/lib/jvm/java-1.8-openjdk/jre","JAVA_OPTS":"-Duser.timezone=America/Montreal","OLDPWD":"/usr/local/vertx","XFILESEARCHPATH":"/usr/dt/app-defaults/%L/Dt","LANG":"C.UTF-8","VERTICLE_NAME":" cam-worker.js","VERTX_JUL_CONFIG":"/usr/verticles/logging.properties","HOSTNAME":"b787ae039331","JAVA_ALPINE_VERSION":"8.151.12-r0","LD_LIBRARY_PATH":"/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64","NLSPATH":"/usr/dt/lib/nls/msg/%L/%N.cat","PWD":"/usr/verticles","JAVA_VERSION":"8u151","VERTICLE_HOME":"/usr/verticles","SHLVL":1,"HOME":"/root","myKey":"myValue"}