experimental Azure Web adapter

This commit is contained in:
Christian Tzolov
2023-03-02 13:53:24 +01:00
parent 79c39ab6ca
commit 0b4b1913f0
3 changed files with 11 additions and 8 deletions

View File

@@ -17,6 +17,9 @@
<modules> <modules>
<module>spring-cloud-function-adapter-aws</module> <module>spring-cloud-function-adapter-aws</module>
<module>spring-cloud-function-adapter-aws-web</module>
<module>spring-cloud-function-adapter-azure-web</module>
<module>spring-cloud-function-adapter-azure-web/sample/pet-store</module>
<module>spring-cloud-function-adapter-azure</module> <module>spring-cloud-function-adapter-azure</module>
<module>spring-cloud-function-adapter-gcp</module> <module>spring-cloud-function-adapter-gcp</module>
<module>spring-cloud-function-grpc</module> <module>spring-cloud-function-grpc</module>

View File

@@ -98,7 +98,7 @@
<hostJson>${project.basedir}/src/main/resources/host.json</hostJson> <hostJson>${project.basedir}/src/main/resources/host.json</hostJson>
<runtime> <runtime>
<os>linux</os> <os>linux</os>
<javaVersion>11</javaVersion> <javaVersion>11</javaVersion>
</runtime> </runtime>
@@ -126,7 +126,7 @@
- [Java Versions](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-java?tabs=bash%2Cconsumption#java-versions) - [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) - 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 ./mvnw clean package
@@ -134,7 +134,7 @@
## Running Locally ## 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. 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: Then build and run the sample:
@@ -162,7 +162,7 @@ Build and deploy
Run the function in debug mode. 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: Alternatively and the `JAVA_OPTS` value to your `local.settings.json` like this:
@@ -191,7 +191,7 @@ VS Code remote debug configuration:
"request": "attach", "request": "attach",
"hostName": "localhost", "hostName": "localhost",
"port": "5005" "port": "5005"
}, },
} }
``` ```

View File

@@ -15,9 +15,9 @@
</parent> </parent>
<modules> <modules>
<!-- <module>function-azure-di-samples/azure-httptrigger-demo</module> <module>function-azure-di-samples/azure-httptrigger-demo</module>
<module>function-azure-di-samples/azure-timetrigger-demo</module> <module>function-azure-di-samples/azure-timetrigger-demo</module>
<module>function-azure-di-samples/azure-blob-trigger-demo</module> --> <module>function-azure-di-samples/azure-blob-trigger-demo</module>
<module>function-sample-pof</module> <module>function-sample-pof</module>
<module>function-sample-pojo</module> <module>function-sample-pojo</module>
<module>function-sample-aws</module> <module>function-sample-aws</module>