-
Couldn't load subscription status.
- Fork 712
[WIP] Compute resources pipeline steps #12311
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Rename WellKnownPipelineSteps to WellKnownPipelineTags (keep old class for backward compatibility) - Add Tags property to PipelineStep - Create PipelinePassAnnotation and PipelinePassContext for second-pass callbacks - Implement step-to-resource mapping during step collection - Add AddSecondPassCallback API to IDistributedApplicationPipeline - Add extension methods for registering second-pass callbacks on resources - Add helper methods to find steps by tag, resource, or both Co-authored-by: captainsafia <[email protected]>
- Test Tags property on PipelineStep - Test second-pass callback execution and step dependency modification - Test finding steps by tag, resource, and tag+resource combination - Test WithPipelinePassCallback extension methods (sync and async) - Test resource capture in second-pass callbacks - Test complex dependency relationships using tags - Test WellKnownPipelineTags constants and backward compatibility - Ensure second-pass callbacks execute even when no steps exist Co-authored-by: captainsafia <[email protected]>
Co-authored-by: captainsafia <[email protected]>
- Rename WellKnownPipelineSteps to WellKnownPipelineTags (removed obsolete class) - Rename PipelinePassAnnotation to PipelineConfigurationAnnotation - Rename PipelinePassContext to PipelineConfigurationContext - Rename AddSecondPassCallback to AddPipelineConfiguration - Rename WithPipelinePassCallback to WithPipelineConfiguration - Remove Resource property from context, add ApplicationModel property - Update all tests to use new API - Remove CS0618 pragma warnings (no longer needed) Co-authored-by: captainsafia <[email protected]>
…AzureEnvironment aware of Resources that have their own build steps.
This allows a resource that contains static files (for example a Javascript frontend) to embed its static files into another app server - for example a fastapi python app backend. Key changes: * Add StaticDockerFilesAnnotation which goes on the resource that can produce static files. A resource with this annotation builds a docker image, but the image doesn't get pushed to a registry. * Add StaticDockerFileDestinationAnnotation which goes on the resource that receives the static files. Resources that support this COPY the static files from the source resource into their own docker image. * AzureEnvironmentResource recognizes resources that have their own "build compute" step, and delegate to those steps for building their images. * All compute environment resources respect the new StaticDockerFilesAnnotation to mean that this resource shouldn't be considered a compute resource. Contributes to dotnet#12162
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 12311Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 12311" |
- Move IResourceWithStaticDockerFiles to ViteApp - Add the build step tag on python
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is combining all the changes from #12265 and #12293. I'm opening this PR to get the dogfood installer.