dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.64k stars 411 forks source link

Add support for Azure Container Apps "init containers" #2866

Open christiannagel opened 6 months ago

christiannagel commented 6 months ago

The new database migrations sample uses a separate project to start the EF Core migration: https://github.com/dotnet/aspire-samples/tree/main/samples/DatabaseMigrations

This will start another Azure container app. It would be great to have support for "init containers" with Azure Container Apps. These would run in the same app initializing before: https://learn.microsoft.com/en-us/azure/container-apps/containers#init-containers

Fazer01 commented 1 month ago

+1 Following because we would love to also see this to be supported within Aspire

CZEMacLeod commented 1 month ago

This feels like the WaitFor project could be used to at least handle the spin up ordering. Not sure about spinning it down on completion though.