Skip to content
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

Added basic RabbitMQContainerResource #299

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

davidfowl
Copy link
Member

  • This is pretty close to what eshop implements for its usage.

Contributes to #231

- This is pretty close to what eshop implements for its usage.

public static class RabbitMQBuilderExtensions
{
public static IDistributedApplicationResourceBuilder<RabbitMQContainerResource> AddRabbitMQContainer(this IDistributedApplicationBuilder builder, string name, int? port = null)
Copy link
Member

Choose a reason for hiding this comment

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

I've been thinking ... should we ditch the port specification options here? Same for Postgres and Redis. And just let DCP allocate them?

Copy link
Member Author

Choose a reason for hiding this comment

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

You mean ditch making them optional?

Copy link
Member

Choose a reason for hiding this comment

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

No I mean ditching them altogether.

@mitchdenny
Copy link
Member

LOL, I was just about to do this! This looks like a reasonable start to me. Just one meta-comment around ports on the AddXYZ methods for resources.

@mitchdenny
Copy link
Member

mitchdenny commented Oct 15, 2023

Might be worth considering password, oh and a connection string option as well.

@davidfowl
Copy link
Member Author

@mitchdenny Should I make this part of the manifest as a rabbitmq.v1 resource type?

@mitchdenny
Copy link
Member

@mitchdenny Should I make this part of the manifest as a rabbitmq.v1 resource type?

Yep. I don't think it'll need anything other than the type at this stage.

- Support a password
- Added manifest writing
@davidfowl
Copy link
Member Author

Done, and tested with eshop

@davidfowl davidfowl merged commit 1a8425e into main Oct 16, 2023
4 checks passed
@davidfowl davidfowl deleted the davidfowl/rabbitmq-resource branch October 16, 2023 00:14
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants