Skip to content

Azure-Samples/app-templates-springboot-microservices-on-ARO

 
 

Spring Boot PetClinic Microservices Application Deployed to Azure Red Hat Openshift (ARO)

Note

For Spring Boot applications, we recommend using Azure Spring Apps. See Java Workload Destination Guide for advice.

Description

In this sample app template, the PetClinic application (a Spring Boot based app) is containerized and deployed to an Azure RedHat Openshift (ARO) cluster secured by Azure Firewall

Deploy Spring Boot apps using Azure Red Hat Openshift (ARO) and Azure Services:

-- Tech stack:

  • Azure Container Registry (ACR)
  • MySql DB
  • Azure Red Hat Openshift (ARO) Cluster
  • Azure Infra (Hub & Spoke Topology)
  • Azure Infra (VNet Peering)
  • Azure Fire Wall
  • Azure Bastion
  • Github Actions
  • Bicep
  • Docker
  • Maven
  • Springboot

Introduction

This is a quickstart template. It deploys the following:

  • Deploying PetClinic App:

    • Provisioning Azure Infra Services with BICEP
    • Create the spring-petclinic- build with Maven
    • Create an Azure Container Registry
    • Push your app to the container registry
    • Create an Azure Redhat Openshift (ARO) Cluster
    • Deploy the image to your ARO cluster
    • Verify your container image
  • PetClinic on Automated CI/CD with GitHub Action

    • CI/CD on GitHub Action
    • CI/CD in action with the app

Refer to the App Templates repo Readme for more samples that are compatible with AzureAccelerators.

Prerequisites

  • Local shell with Azure CLI installed or Azure Cloud Shell
  • Azure Subscription, on which you are able to create resources and assign permissions
    • View your subscription using az account show
    • If you don't have an account, you can create one for free.

Getting Started

Fork the repository

  1. Fork the repository by clicking the 'Fork' button on the top right of the page. This creates a local copy of the repository for you to work in.

  2. Configure GITHUB Actions: Follow the insturctions in the GITHUB_ACTIONS_CONFIG.md file (Located in the .github folder.)

  3. Run the workflow

  • If workflows are enabled for this repository it should run automatically. To enable the workflow run automatically, Go to Actions and enable the workflow if needed.
  • Workflow can be manually run
    • Under your repository name, click Actions .
    • In the left sidebar, click the workflow "Build and Deploy Application".
    • Above the list of workflow runs, select Run workflow .
    • Use the Branch dropdown to select the workflow's main branch, Click Run workflow .

Pet Clinic Website

petclinic-screenshot

Congratulations! Now you have your containerized Java Sping Boot App deployed on AKS with supported JDK pushed to your ACR.

Pet Clinic Website - IP Address

  1. If you wish to view the PetClinic deployment, follow the steps listed below:
  • Log into the Azure Portal
  • Nagivate the the "petstore_spoke_eastus" Resource Group

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

  • Java 67.5%
  • HTML 15.5%
  • Less 8.3%
  • Bicep 5.9%
  • Shell 2.0%
  • Dockerfile 0.8%