openwhisk-runtime-java
openwhisk-runtime-java copied to clipboard
[Thought] Using Volumes for java actions
currently Java action jars are stored in couch DB and the streamed to the JarLoader while invocation. @gorkem is working to refactor that approach to save load and invocation time.
One of the thought is define a m2 kind of lay out and Java Action pick the jar from it instead of streaming. It could be modelled around GlusterFS and PV.
Volumes? As in mounted file system from the host?
yes @rabbah something like that, we an use PV as well but @gorkem felt its take a bit of time loading PV, so thinking of some way like GlusterFS kind of things.
My thoughts around proposing this idea were:
- help big SI adopt OW with option that they connect their existing maven repos to the volumes
- wsk create (java action) does not need to store the jar binary in couchdb instead it can point to maven GAV
- when invoking action the maven GAV could be used to add that jar alone to CP and invoke it.
I need to access config file from host when calling action(Java action) by openwhisk . But am unable to read from host(showing file not found exception). So for that i need to add volume when docker java8action image/container bootup. How i will add that volume info.. Please suggest..