praveen1664 / Azure-Function-bootstraper-java

Azure Function bootstrap project in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

APPLICATION_NAME

Azure [Java] Function bootstrap project

PreRequisites

Important: The JAVA_HOME environment variable must be set to the install location of the JDK to complete this.

Overview

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

Commands

Install dependencies

mvn install

Build

mvn package

Test

mvn test

Run

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

Jenkins Deployments

The azure-function-java-boot supports 2 deployment models:

  1. Kubernetes
  2. Azure (coming soon)

NOTE - You will need to update the repository in your prod.yaml file for NON-LOCAL HELM Deployments

Additional Links

Azure Function Java

About

Azure Function bootstrap project in Java


Languages

Language:Java 69.5%Language:Mustache 19.3%Language:Dockerfile 11.2%