本页面为机器翻译。阅读英文原文。

Recipe

server-container-apps

The generic long-running server primitive as one Azure Container Apps app running the Release's image on infra.port, through a Terraform module kept beside this Recipe. Reach for it in an Azure subscription with a Container Apps environment; for terraform/server-ecs or cloudformation/server-ecs in an AWS account, terraform/server-cloud-run on Google Cloud, and helm/server on Kubernetes. Its ingress is internal: only the other apps in its environment reach it, and it is not published at the environment's inbound address. The environment and resource group are the operator's, each required under infra.overrides; user-assigned identities and a private registry, its password read from Key Vault by reference, are optional. Only the app is emitted — no environment, network, identity, registry, Key Vault or log workspace, each the operator's. Each env entry an edge's inject block, or the component's own, dictates becomes a container variable of that name, written whole, so a neighbour's Terraform reference is evaluated by the engine, and each file entry a secret mounted alone at the path named. Neither may dictate a name Container Apps sets itself; arg and other entries are refused by name. The app runs exactly infra.replicas replicas at the smallest Consumption size meeting infra.compute.cpu and infra.compute.memory, so the Component's defaults run at 0.25 vCPU and 0.5 GiB. Azure/avm-res-app-containerapp/azurerm is not sourced: at 0.9.0, its newest, it calls Azure/avm-utl-interfaces/azure from the registry, which init fetches outside the pin. It takes hashicorp/azurerm 4 or 5, so it shares a terraform boundary with terraform/postgres-flexible-server or with the azurerm 5 Recipes.

版本

1.0.01.1.0

来源

官方由本目录认定为官方发布者的签名身份签名。
内容摘要
sha256:0ce87bcc541d2b733ceb00fa8db1db6a3b1e9194e123ed8c8a9e561072779e9d
发布时间
2026-11-10T10:28:55Z
签名身份
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

签名

  • 官方application/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:bfd0efaa0045d6d6747bc8f0b3ff623717bd7948e5a2325f9339d07401e4426b

此版本的引用

oci://hub.aggrega.ai/recipe/terraform/server-container-apps:1.0.0
目标
—
实现
core/compute/server:1.0.0

提供

此配方为使用方接入的确定性指针模板。

未声明 provides 模板。

Workload

未声明工作负载模板。

局部变量

名称模板
cpu_millicores{{- $c := toString (optional (optional .infra "compute" dict) "cpu" "") -}} {{- if regexMatch `^[0-9]+m server-container-apps 1.0.0 · Aggrega 目录 $c -}}{{ atoi (trimSuffix "m" $c) }} {{- else if regexMatch `^[0-9]+(\.[0-9]{1,3})? server-container-apps 1.0.0 · Aggrega 目录 $c -}} {{- $p := splitList "." $c -}}{{- $f := 0 -}} {{- if eq (len $p) 2 }}{{ $f = atoi (substr 0 3 (printf "%s000" (index $p 1))) }}{{ end -}} {{- add (mul (atoi (index $p 0)) 1000) $f -}} {{- end -}}
memory_mib{{- $m := toString (optional (optional .infra "compute" dict) "memory" "") -}} {{- if regexMatch `^[0-9]+Mi server-container-apps 1.0.0 · Aggrega 目录 $m -}}{{ atoi (trimSuffix "Mi" $m) }} {{- else if regexMatch `^[0-9]+Gi server-container-apps 1.0.0 · Aggrega 目录 $m -}}{{ mul (atoi (trimSuffix "Gi" $m)) 1024 }} {{- end -}}
size{{- $found := "" -}} {{- if and .locals.cpu_millicores .locals.memory_mib -}} {{- $mc := atoi .locals.cpu_millicores -}}{{- $mib := atoi .locals.memory_mib -}} {{- range list (list 250 512 "0.25" "0.5Gi") (list 500 1024 "0.5" "1.0Gi") (list 750 1536 "0.75" "1.5Gi") (list 1000 2048 "1.0" "2.0Gi") (list 1250 2560 "1.25" "2.5Gi") (list 1500 3072 "1.5" "3.0Gi") (list 1750 3584 "1.75" "3.5Gi") (list 2000 4096 "2.0" "4.0Gi") (list 2250 4608 "2.25" "4.5Gi") (list 2500 5120 "2.5" "5.0Gi") (list 2750 5632 "2.75" "5.5Gi") (list 3000 6144 "3.0" "6.0Gi") (list 3250 6656 "3.25" "6.5Gi") (list 3500 7168 "3.5" "7.0Gi") (list 3750 7680 "3.75" "7.5Gi") (list 4000 8192 "4.0" "8.0Gi") -}} {{- if and (not $found) (ge (index . 0) $mc) (ge (index . 1) $mib) -}} {{- $found = printf "%s/%s" (index . 2) (index . 3) -}} {{- end -}} {{- end -}} {{- end -}} {{- $found -}}
size_cpu{{ if .locals.size }}{{ index (splitList "/" .locals.size) 0 }}{{ end }}
size_memory{{ if .locals.size }}{{ index (splitList "/" .locals.size) 1 }}{{ end }}

值映射

未声明值映射。

关系

与其他已发布实体之间的类型化边。没有已发布目标的引用会呈现为断开的边,而不是链接。

使用

被使用

目录中没有任何内容依赖此实体。

Recipe 概念参考 →

Aggrega 目录 — 收录组件、功能、配方以及渲染它们的插件的开放索引。

基于共享的 Aggrega 设计系统构建。

隐私