Azure [Java] Function bootstrap project
- Java Developer Kit (JDK), version 1.8.
- Apache Maven, version 3.0 or above.
Important: The
JAVA_HOME
environment variable must be set to the install location of the JDK to complete this.
This project is a java based Azure Function Application that comes pre-configured with 2 httpTrigger
function.
The project structure is defined below
root
| - src
| | - main
| | | - java
| | | | - function
| | | | | - HttpTrigger1.java
| | | | | - HttpTrigegr2.java
| - target
| | - azure-functions
| | | - function
| | | | - azure-function-java-boot.jar
| | | | - host.json
| | | | - http-trigger1
| | | | | - function.json
| | | | - http-trigger2
| | | | | - function.json
| | | | - bin
| | | | - lib
| - pom.xml
mvn install
mvn package
mvn test
func start
### Deploy to local kubernetes with HELM
[HELM](https://helm.sh/docs/intro/install/) is required for this section*
```sh
$ ./local.sh
You should now be able to hit your new application at http://localhost:7071
The azure-function-java-boot supports 2 deployment models:
- Kubernetes
- Azure (coming soon)
NOTE - You will need to update the repository in your prod.yaml file for NON-LOCAL HELM Deployments