You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/12/05 08:25:41 UTC
[GitHub] chetanmeh opened a new issue #3057: Provide a way to refer to extra jars in launch script classpath
chetanmeh opened a new issue #3057: Provide a way to refer to extra jars in launch script classpath
URL: https://github.com/apache/incubator-openwhisk/issues/3057
Currently the launch scripts generated for controller and invoker refer to an explicit classpath which enumerates all the existing dependencies of these modules.
For certain scenarios its desirable to add custom jars to the classpath. For e.g. by default openwhisk bundles kamon-statsd but in our environment we need to use kamon-datadog. To enable that we need to include the kamon-datadog jars in controller classpath.
### Proposal
To enable that launchscript can provide a wildcard pattern 'extra-libs/*'. Then in our custom image we can add extra jars to this directory which would get picked up at runtime
CLASSPATH=$APP_HOME/lib/akka-slf4j_2.11-2.5.6.jar:$APP_HOME/extra-libs/*
### Possible Approach
Checking in Gradle it does not appear to provide a simple way to add such custom entry. (Raised query [here][1]). So for now we can go with an approach like [here][2]
[1]: https://discuss.gradle.org/t/adding-wildcard-classpath-entry-in-launch-script/25010
[2]: http://mrhaki.blogspot.in/2015/04/gradle-goodness-alter-start-scripts.html
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services