Hi Team,
The docker version of siddhi-runner or siddhi-tooling is incompatible to compile JS functions as part of siddhi scripts.
On debugging I found the issue to be related with slim version of the base JDK image which doesn't include the NashornScript libraries for Javascript evaluation, thus causing the exceptions while deploying the siddhi apps with docker.
I tried using a non-slim version of the base JDK image, with which the JS function works fine with the siddhi apps. I have raised the PR with the respective changes. Requesting the review for the same.
Regards,
Lokkesh