-
Couldn't load subscription status.
- Fork 713
[release/9.4] Backport 10203: Add CTRL-C message back into aspire run command
#10324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Initial plan * Add CTRL-C guidance message to aspire run command output Co-authored-by: mitchdenny <[email protected]> * Update CTRL-C message * Fix CTRL-C message formatting and change "app host" to "apphost" Co-authored-by: maddymontaquila <[email protected]> * Move CTRL+C message to appear after endpoints in codespaces Co-authored-by: maddymontaquila <[email protected]> * Fix CTRL+C message positioning in codespaces by improving environment detection Co-authored-by: mitchdenny <[email protected]> * Fixes to implementation. * Fix formatting (bye bye pink) --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: mitchdenny <[email protected]> Co-authored-by: Mitch Denny <[email protected]> Co-authored-by: maddymontaquila <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR backports #10203, restoring the CTRL-C message in aspire run and enhancing container image building to support new options. Key changes include:
- Extended
IResourceContainerImageBuilderto acceptContainerBuildOptions(format, platform, output path) and added related enums. - Updated Docker and Podman runtimes to handle the new options.
- Renamed and refactored Azure storage methods (
AddBlobs/AddQueues→AddBlobService/AddQueueService) across tests and documentation.
Reviewed Changes
Copilot reviewed 159 out of 162 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Aspire.Hosting/Publishing/ResourceContainerImageBuilder.cs | Added ContainerBuildOptions parameter to BuildImageAsync/BuildImagesAsync overloads. |
| src/Aspire.Hosting/Publishing/DockerContainerRuntime.cs | Enhanced Docker build commands for format, platform, and output options. |
| src/Aspire.Hosting/Publishing/PodmanContainerRuntime.cs | Enhanced Podman build commands for format, platform, and output options. |
| src/Aspire.Hosting.Azure.Storage/AzureStorageExtensions.cs | Introduced new AddBlobService/AddQueueService/AddTableService methods and health checks. |
Files not reviewed (1)
- src/Aspire.Dashboard/Resources/ConsoleLogs.Designer.cs: Language not supported
Comments suppressed due to low confidence (3)
src/Aspire.Hosting.Azure.Storage/AzureStorageExtensions.cs:485
- [nitpick] Methods like
AddBlobService,AddQueueService, andAddTableServicecontain very similar health-check registration and connection-string handling code. Consider extracting the shared logic into a helper function to reduce duplication and improve maintainability.
public static IResourceBuilder<AzureQueueStorageResource> AddQueues(this IResourceBuilder<AzureStorageResource> builder, [ResourceName] string name)
src/Aspire.Hosting/Publishing/PodmanContainerRuntime.cs:41
Path.Combineis used butSystem.IOis not imported in this file. Addusing System.IO;at the top to avoid compile errors.
arguments += $" --output \"{Path.Combine(options.OutputPath, resourceName)}.tar\"";
src/Aspire.Hosting/Publishing/DockerContainerRuntime.cs:67
Path.Combineis used butSystem.IOis not imported in this file. Addusing System.IO;at the top to avoid compile errors.
outputType += $",dest={Path.Combine(options.OutputPath, resourceName)}.tar";
|
out of curiosity, will this have an impact on #9756? |
|
@WillEhrendreich nope, that issue still stands. |
Pull request was closed
This PR backports #10203 which adds the CTRL-C message back into the
aspire runcommand. It addresses an issue where the CTRL-C message was rendering above endpoints when running in devcontainers/codespaces (where we need to render the URLs).