This repository contains all demos shown in my talk "Java on Azure" at the "Global Azure 2022" conference.
You'll find the script to deploy the infrastructure in: java-on-azure.bicep.
To deploy this to your Azure account get the Azure CLI and create a resource group named rg-java-on-azure
. Then run:
./deploy-infrastructure.sh
To build the example app install Java and Maven then build the app in the java-realworld-app
folder:
mvn package spring-boot:build-image
After building the app run:
./deploy-webapp.sh
To deploy the function you'll have to create a GraalVM native-image of the application first. Un the java-realworld-app
folder run:
mvn -Pnative spring-boot:build-image
Then copy the binary out of the docker image to the functions folder and run:
./deploy-function.sh