Seed local Azure Blob Storage from fixture files in the Floci AppHost
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by reading the existing CommunityToolkit.Aspire.Hosting.Floci implementation of AddFlociAzure() and WithStorage(), then inspect how other Aspire resources wait for readiness and expose completion dependencies. AddBlobFixtures() should seed one container from an AppHost relative directory in local run mode, skip existing blobs, and report missing directories or upload failures clearly. Add an integration test that checks fixture availability after completion and verifies a second run preserves existing blobs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Related to an existing integration?
Yes
Existing integration
CommunityToolkit.Aspire.Hosting.Floci
Overview
When developing an application that processes blobs, I'd like a fresh checkout to come with the same sample files every time. Floci's WithStorage() gives the AppHost a local Azure Storage resource, but getting files into it still requires a manual upload or a separate seeding utility. That makes it harder for us to run the same ingestion scenario locally.
I propose adding AddBlobFixtures() to the Floci Azure Storage resource. During a local run, it would wait for storage to become ready, create the target blob container if needed, and upload files from an AppHost relative directory. It would return a resource that dependent projects can wait on, so they can start once the fixtures are available.
Usage example
var storage = builder.AddFlociAzure("floci").WithStorage();
var fixtures = storage.AddBlobFixtures(
containerName: "submission-documents",
sourceDirectory: "Fixtures/Submissions");
builder.AddProject<Projects.IngestionWorker>("ingestion")
.WithReference(storage)
.WaitForCompletion(fixtures);
Breaking change?
No
Alternatives
Upload the files manually through a storage explorer, or add a small seeding project that uses the Azure Blob Storage SDK. A seeding project works, but each AppHost has to wire up the same container creation, file upload and startup ordering.
Additional context
Id scope the first PR to one fixture directory and one blob container per call, targeting the local Floci emulator in run mode. If a blob already exists, the seeder would skip it so restarting the AppHost preserves local changes. A missing fixture directory or failed upload would fail the seeding resource with a clear error. I'd add an integration test that verifies the files are available after the seeder completes and that a second run preserves existing blobs.
The proposed API builds on the existing Floci WithStorage() resource. I’d be happy to adjust the API and scope based on feedback.
Help us help you
Yes, I'd like to be assigned to work on this item
- Lingua principale
- C#
- Stelle
- 635
- Fork
- 207
- Merge medio
- 1g 9h
- PR unite (30g)
- 132
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CommunityToolkit/Aspire
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
CommunityToolkit/Aspire#2593 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
CommunityToolkit/Aspire#2533 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
CommunityToolkit/Aspire#2436 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[SqlProjects] Improve checksum cheksForse già presa @ErikEJ l’ha presa 14 giorni fa. Aperta
CommunityToolkit/Aspire#2435 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
CommunityToolkit/Aspire#2431 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CommunityToolkit/Aspire
Issue simili
-
area: core bug help wanted ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ZaidX88/sluice#265 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: remote bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Install a C# EnvironmentAperta📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
A: Mapping P3: Standard T: New Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
space-wizards/space-station-14#46878 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno