Closed askoobe closed 5 years ago
You get different arguments depending on how the jar is invoked:
The plugin includes the 'jar_file' parameter to the nomad job, which causes nomad to run it as java -jar slave.jar
I think if you include "class" key that will fix it. I'll try to get a plugin build environment setup to test.
It looks like the MR to add support for the tunnel arg messed up the java driver. I will see if i can get a patch for it
I think the fix is in this change that once I finish testing will submit against the master branch. It looks like the Java Driver starts differently than the docker driver and the refactor fixing the docker driver added incompatible options to the java driver. https://github.com/aphill70/nomad-plugin/pull/4/files#diff-32076d9aefec62080e5dc98ab12872d0L89
Tried to find somewhere with a solution but to no avail, sorry to ask here but I am stuck. I'd love to get this working, but when a slave starts up (Nomad Java driver) it fails because the -headless argument seems to be not available in newer version of slave.jar. Or am I missing something?