You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I posted this to dotnet/aspire#5260 , but think it probably belongs here. aspirate --version says it is 8.0.7. I'm not sure if I've coded the AppHost wrong or if it's a bug in finding the Dockerfile in the Aspirate code.
I'm just getting started with Aspire & Aspirate. I attempted to use the dotnet new aspire-starter template and then modify the AppHost/Program.cs to add a Docker container.
But when I run aspirate build, I get the error No Dockerfile components selected. Skipping build and publish action..
Example output:
~/ms/aspire-starter/Aspir8.AppHost> az acr login -n cataggar26acr
Login Succeeded
~/ms/aspire-starter/Aspir8.AppHost> aspirate build --disable-secrets=true
_ _ ___
/ \ ___ _ __ (_) _ __ ( _ )
/ _ \ / __| | '_ \ | | | '__| / _ \
/ ___ \ \__ \ | |_) | | | | | | (_) |
/_/ \_\ |___/ | .__/ |_| |_| \___/
|_|
Handle deployments of a .NET Aspire AppHost
── Handling Aspirate State ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading state from C:\Users\cataggar\ms\aspire-starter\Aspir8.AppHost\aspirate-state.json.
Would you like to use all previous state values, and skip re-prompting where possible ? [y/n] (y): n
(?) Done: State has been disabled for this run. Only secrets will be populated.
── Handling Aspirate Secrets ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Secrets are disabled.
── Handling Configuration ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Successfully loaded existing aspirate bootstrap settings from '.'.
── Handling Aspire Manifest ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Generating Aspire Manifest for supplied App Host
(?) Done: Created Aspire Manifest At Path: C:\Users\cataggar\ms\aspire-starter\Aspir8.AppHost\manifest.json
── Selecting Required Components ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
── Gathering Information about deployables ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Gathering container details for each project in selected components
(?) Done: Populated container details cache for project api
Gathering Tasks Completed - Cache Populated.
── Handling Projects ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Building all project resources, and pushing containers
Executing: dotnet publish "C:\Users\cataggar\ms\aspire-starter\Aspir8.AppHost\../Aspir8.ApiService/Aspir8.ApiService.csproj" -t:PublishContainer --verbosity "quiet" --nologo -r "linux-x64"
-p:ContainerRegistry="cataggar26acr.azurecr.io" -p:ContainerRepository="api" -p:ContainerImageTag="latest"
(?) Done: Building and Pushing container for project api
Building and push completed for all selected project components.
── Handling Dockerfiles ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
No Dockerfile components selected. Skipping build and publish action.
?? Execution Completed ??
🔥 Bug Description
I posted this to dotnet/aspire#5260 , but think it probably belongs here.
aspirate --version
says it is 8.0.7. I'm not sure if I've coded the AppHost wrong or if it's a bug in finding the Dockerfile in the Aspirate code.I'm just getting started with Aspire & Aspirate. I attempted to use the
dotnet new aspire-starter
template and then modify the AppHost/Program.cs to add a Docker container.But when I run
aspirate build
, I get the errorNo Dockerfile components selected. Skipping build and publish action.
.Example output:
🔍 Steps to Reproduce the Bug
I put everything in a GitHub repo to reproduce at https://github.com/cataggar/aspire-starter .
🧯 Possible Solution
The text was updated successfully, but these errors were encountered: