This is the companion repository for the Azure Container Apps Java Microservice quickstart. This repository contains Java samples that demonstrate how to build your own images and deploy to Azure Container Apps.
In Azure Container Apps Java Microservice quickstart, you're using our built images for the Spring Petclinic microservice apps. If you want to customize the sample code and use your own images, you can follow the steps.
-
Fork your own copy of Azure-samples/azure-container-apps-java-samples by clicking the Fork button in the upper right corner of the repository.
-
Fork your own copy of spring-petclinic/spring-petclinic-microservices by clicking the Fork button in the upper right corner of the repository. And clone the repository to your local machine.
-
Modify the code in your forked repository and push to your forked repository.
-
Go to your forked
azure-container-apps-java-samples
repository, navigate to theGitHub Actions
tab, choosePublish Petclinic images
workflow, and clickRun workflow
, then fill in the repository url of Spring Pet clinic microservices with your forked Petclinic repository url. The image tag version is optional for your customized images, you can leave it empty to use the default valuelatest
.
- After the workflow finished, go to the
Code
tab of yourazure-container-apps-java-samples
repository, click thePackages
button at the right bottom corner to see the built images.
- There should be four packages in the list, one for each of the Java microservice apps. Click on the package name to see the details of the package. Update or create your container apps with these images as how Azure Container Apps Java Microservice quickstart does.