You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Extension Pack for Java
2. Spring Boot Extension Pack [which includes Spring Boot dashboard , Spring Boot initializer,Spring Boot tools]
building the code locally:
1 mvn spring-boot: run
2. a. mvn clean install
b. java -jar target/hello-0.0.1-SNAPSHOT.jar (for eg: let snapshot be hello-0.0.1-SNAPSHOT.jar)
OR
b. go to the Springboot dashboard and click on Run icon. Hit the required page.
Testing the code locally:
To run all the test cases
mvn test
To run a particular test class
mvn -Dtest=HelloTest test
After testing locally push the code to ADO
Creating infrastructure in Azure through bicep script:
ACR
ACA
Deploying the application to Azure Container App
1. taken the compatible maven version , extracting it and doing the maven build in the pipeline.
2. Dockerised the application and build and pushed the image to ACR
3. Managed identity generated and passed it to authenticate newly created container app. Specified port and other configurations added.
About
CI/CD of simple Java-Springboot application. Build and package the application into .jar . Created Dockerfile and dockerised the application. Built and pushed image to ACR and deployed to ACA. Integrated jacoco for code coverage and tested using Junit test cases. The infrastructure is built using bicep templates.