prom3theu5 / aspirational-manifests

Handle deployments of .NET Aspire AppHost Projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Volumes are not generated in the docker compose file

Depechie opened this issue Β· comments

πŸ”₯ Bug Description

I have a project where I bind several volumes per docker container to load configuration files.
But generating the docker compose file does not include these volumes.

πŸ” Steps to Reproduce the Bug

  1. Clone https://github.com/Depechie/OpenTelemetryGrafana/tree/aspire/code/otel.AppHost
  2. aspirate generate --output-format compose
  3. Open the docker compose and see that there are no volumes defined

Unfortunately we can't support volumes until Aspire outputs volume information in the manifest
Aspir8 operates solely on the information output in the manifest file that is produced from the AppHost.

You can see whats available by running this in the AppHost directory of the otel project

dotnet run --publisher manifest --output-path manifest.json

Right now, there aren't any volume resources, and without them aspir8 has no way to know that it can create them 😒

Mitch did some work initially here: dotnet/aspire#1521 but nothing itself has made it into a release yet, and doesn't look likely for version 1

Thanks for the clarification!

We've done work in preview 5 to preserve container volumes for container resources specifically.