This a simple example to show hot to use the new Azure Functions custom handlers (https://docs.microsoft.com/en-gb/azure/azure-functions/functions-custom-handlers) to run Jolie code.
- Clone this repo
- Create a jolie_bin directory and copy there the content of your current Jolie installation (see JOLIE_HOME env)
- Install Azure Functions Core Tools (https://github.com/Azure/azure-functions-core-tools)
- Make jolie_func_executor.sh script executable
- Run func start
- Browse to http://localhost:7071/api/greet?name=<...>
Tested on Ubuntu 20.04
Install Java
sudo apt install openjdk-11-jdk
sudo apt install unzip
Install Jolie
wget https://github.com/jolie/jolie/releases/download/v1.9.0/jolie-1.9.0.jar
sudo java -jar jolie-1.9.0.jar
(leave all defaults)
Install Azure Func core tools
Follow instructions: https://github.com/Azure/azure-functions-core-tools#linux
Copy Jolie binaries
mkdir jolie_bin
cp -r /usr/lib/jolie/* ./jolie_bin/
Run
chmod +x jolie_func_executor.sh
func start