-
Notifications
You must be signed in to change notification settings - Fork 150
Azure Container Apps: Samples
Ruoyu Wang edited this page Nov 6, 2024
·
2 revisions
Azure Container Apps Maven Plugin is intended to help you easily create and update Azure Container Apps. With this tooling, you could run the deploy jobs automatically with pre defined configuration.
- Azure Subscription
- JDK 17 and above installed on your local machine
- Maven 3.0 and above installed on your local machine
-
Clone git repository by running below command.
git clone https://github.com/spring-projects/spring-petclinic.git
-
Change directory and build the project (Optional) by running below command.
cd spring-petclinic mvn clean package -DskipTests (Optional)
-
Add configuration in your pom.xml
<build> <plugins> ... <plugin> <groupId>com.microsoft.azure</groupId> <artifactId>azure-container-apps-maven-plugin</artifactId> <version>0.1.0</version> <configuration> <subscriptionId>your-subscription-id</subscriptionId> <resourceGroup>your-resource-group</resourceGroup> <appEnvironmentName>your-app-environment-name</appEnvironmentName> <region>your-region</region> <appName>your-app-name</appName> <containers> <container> <type>code</type> <directory>${project.basedir}</directory> </container> </containers> <ingress> <external>true</external> <targetPort>8080</targetPort> </ingress> <scale> <minReplicas>0</minReplicas> <maxReplicas>10</maxReplicas> </scale> </configuration> </plugin> </plugins> </build>
-
Deploy the above apps with the following command
mvn azure-container-apps:deploy
-
You may go to Azure Portal to check the deployment status.
- Home
- Authentication
- Proxy
- Common Configurations
-
Maven Plugin for Azure Web Apps
- Quickstarts
- Goals
- Configuration Details
- Samples
-
Maven Plugin for Azure Functions
- Quickstarts
- Archetype
- Goals
- Configuration Details
-
Maven Plugin for Azure Spring Apps
- Quickstarts
- Goals
- Configuration Details
- Maven Plugin for Azure Container Apps
- Using in CI/CD