Abstraction for resources needed when using Azure container apps.
This repo delivers a set of components to abstract the details related to:
- Creating a docker image and pushing it to Azure container registry
- Deploy Azure Container app using the docker image.
- Do both the image build and deployment as a single component.
- resource_group_name: The resource group in which the image registry should be deployed.
- app_path: Path to the Dockerfile to build the app.
- image_tag (Optional): Image tag to use. Default: latest
- platform (Optional): The platform for the image. Default: linux/amd64
- insights_sku (Optional): Sku for the insights workspace. Default: PerGB2018
- app_ingress_port (Optional): Ingress port for the app. Default: 80
- container_app_fqdn: The DNS name for the container app.
Add the following to your Pulumi.yaml file:
Note: If no version is specified, the latest version will be used.
packages:
containerapps: https://github.com/pulumi-pequod/[email protected]
from pulumi_pequod_containerapps import AppBuildDeploy, AppBuildDeployArgs
app_deployment = AppBuildDeploy(f"app-image", AppImageArgs(
resource_group_name = rg.name,
app_path ="./app"
))
import { AppBuildDeploy } from "@pulumi-pequod/containerapps";
const appDeployment = new AppImageDeploy(baseName, {
resourceGroupName: rg.name,
appPath: "./app"
})
using PulumiPequod.Containerapps;
var app = new AppBuildDeploy("app", new AppBuildDeployArgs
{
ResourceGroupName = resourceGroup.Name,
AppPath = "./app",
Platform = platform,
});
app:
type: containerapps:AppBuildDeploy
properties:
resourceGroupName: ${resourceGroup.name}
appPath: ./app
platform: ${platform}