From 0b4b1913f0f2beec36d7dcd51c74a39d0a7aa302 Mon Sep 17 00:00:00 2001 From: Christian Tzolov Date: Thu, 2 Mar 2023 13:53:24 +0100 Subject: [PATCH] experimental Azure Web adapter --- spring-cloud-function-adapters/pom.xml | 3 +++ .../function-azure-di-samples/README.md | 12 ++++++------ spring-cloud-function-samples/pom.xml | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/spring-cloud-function-adapters/pom.xml b/spring-cloud-function-adapters/pom.xml index b012c6756..1cf465997 100644 --- a/spring-cloud-function-adapters/pom.xml +++ b/spring-cloud-function-adapters/pom.xml @@ -17,6 +17,9 @@ spring-cloud-function-adapter-aws + spring-cloud-function-adapter-aws-web + spring-cloud-function-adapter-azure-web + spring-cloud-function-adapter-azure-web/sample/pet-store spring-cloud-function-adapter-azure spring-cloud-function-adapter-gcp spring-cloud-function-grpc diff --git a/spring-cloud-function-samples/function-azure-di-samples/README.md b/spring-cloud-function-samples/function-azure-di-samples/README.md index 0a1c6b77f..d25ea98b0 100644 --- a/spring-cloud-function-samples/function-azure-di-samples/README.md +++ b/spring-cloud-function-samples/function-azure-di-samples/README.md @@ -98,7 +98,7 @@ ${project.basedir}/src/main/resources/host.json - linux + linux 11 @@ -126,7 +126,7 @@ - [Java Versions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-java?tabs=bash%2Cconsumption#java-versions) - Specify [Deployment OS](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-java?tabs=bash%2Cconsumption#specify-the-deployment-os) -* Build the project: +* Build the project: ``` ./mvnw clean package @@ -134,7 +134,7 @@ ## Running Locally -NOTE: To run locally on top of `Azure Functions`, and to deploy to your live Azure environment, you will need `Azure Functions Core Tools` installed along with the Azure CLI (see [here](https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-java?tabs=bash%2Cazure-cli%2Cbrowser#configure-your-local-environment)). +NOTE: To run locally on top of `Azure Functions`, and to deploy to your live Azure environment, you will need `Azure Functions Core Tools` installed along with the Azure CLI (see [here](https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-java?tabs=bash%2Cazure-cli%2Cbrowser#configure-your-local-environment)). For some configuration you would need the [Azurite emulator](https://learn.microsoft.com/en-us/azure/storage/common/storage-use-emulator) as well. Then build and run the sample: @@ -162,7 +162,7 @@ Build and deploy Run the function in debug mode. ``` -./mvnw azure-functions:deploy -DenableDebug +./mvnw azure-functions:run -DenableDebug ``` Alternatively and the `JAVA_OPTS` value to your `local.settings.json` like this: @@ -191,7 +191,7 @@ VS Code remote debug configuration: "request": "attach", "hostName": "localhost", "port": "5005" - }, + }, } - + ``` \ No newline at end of file diff --git a/spring-cloud-function-samples/pom.xml b/spring-cloud-function-samples/pom.xml index 941c1a203..dfe8fad28 100644 --- a/spring-cloud-function-samples/pom.xml +++ b/spring-cloud-function-samples/pom.xml @@ -15,9 +15,9 @@ - + function-azure-di-samples/azure-blob-trigger-demo function-sample-pof function-sample-pojo function-sample-aws