Skip to content

Fixed endpoint mapping in compose resources#9224

Merged
davidfowl merged 1 commit intomainfrom
davidfowl/fix-endpoint-mapping
May 10, 2025
Merged

Fixed endpoint mapping in compose resources#9224
davidfowl merged 1 commit intomainfrom
davidfowl/fix-endpoint-mapping

Conversation

@davidfowl
Copy link
Member

Description

  • Process arguments and env variables in the publish phase. This delays the resolution of endpoints until they are all processed.
  • Also handled bait and switch resources (executable -> container)

Fixes #8674

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
  • Did you add public API?
    • No
  • Does the change make any security assumptions or guarantees?
    • No
  • Does the change require an update in our Aspire docs?
    • No

- Process arguments and env variables in the publish phase. This delays the resolution of endpoints until they are all processed.
- Also handled bait and switch resources (executable -> container)

namespace Aspire.Hosting.Docker;

internal sealed class ResourceComparer : IEqualityComparer<IResource>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This made me realize we have the same problem with the ACA logic, putting up a fix for that now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidfowl davidfowl merged commit ada29f2 into main May 10, 2025
171 checks passed
@davidfowl davidfowl deleted the davidfowl/fix-endpoint-mapping branch May 10, 2025 06:39
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker Compose publisher not producing correct port mappings for PublishAsDockerfile

2 participants