Interpres

A simple interface to the Nashorn scripting engine as it is implemented by the OpenJDK Java runtime. This is the same interpreter for Javascript that is used in the Cisco UCS Director product line. While it is not a complete mock environment for the environment present there it is certainly a lightweight environment to test non-platform specific code.

Short Demonstration Video

Run In A Container

The easiest and supported way to use this tool is via a container runtime. The Nashorn engine is no longer supported in newer versions of the Java runtime so it is easier to get a stable execution environment via a container instead of potentially breaking other Java based applications on a system.

docker build -t $USER/interpres .
docker run --rm --publish 8080:8080 $USER/interpres
View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Products

    UCS Manager
  • Programming Languages

    Java
  • License

    MIT License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.