Can you run Piranha Nano using GraalVM? Yes! It is very easy to get started.
Go https://github.com/piranhacloud/piranha-nano-helloworld and click on "Use this template". Give your project a name and then click on "Create repository from template". Once it is done clone the project from the repository you created.
To build the project locally use the following command line:
mvn clean install
To make it easier to use GraalVM the template delivers you a Dockerfile-graalvm file that you can use to build the GraalVM binary.
To use it execute the following command line:
docker build -t test -f Dockerfile-graalvm .
To use the generated Docker image execute the following Docker command line:
docker run --rm -it -p 8080:8080 test
Now point your browser to http://localhost:8080/ and see Piranha Nano on GraalVM in action.
Posted February 9th, 2022