New Integration Component: CommunityToolkit.Aspire.Hosting.Mosquitto - #1520
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1520Or
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1520" |
@dotnet-policy-service agree |
aaronpowell
left a comment
There was a problem hiding this comment.
Put the inline suggestions to get this ready for release under the 13.5 version of Aspire.
It might be worth having a follow-up issue where a client integration package is created for MQTTnet
| using Microsoft.Extensions.DependencyInjection; | ||
| using Microsoft.Extensions.Diagnostics.HealthChecks; | ||
|
|
||
| #pragma warning disable ASPIREATS001 // AspireExport is experimental |
There was a problem hiding this comment.
No longer experimental, so not required
| @@ -0,0 +1,61 @@ | |||
| #pragma warning disable ASPIREATS001 // AspireExport is experimental | |||
|
@IgorShaposhnikov - if you can action this ASAP I'll include it in the |
Co-authored-by: Aaron Powell <me@aaron-powell.com>
Thanks for the idea! An MQTTnet client integration would be a cool future package. I probably won't be able to dive into it immediately, but let's keep it on the radar for later. |
Closes #1519
This PR introduces a new hosting integration for Eclipse Mosquitto (
CommunityToolkit.Aspire.Hosting.Mosquitto). It allows developers to seamlessly orchestrate and run an Eclipse Mosquitto MQTT broker inside a container as part of their .NET Aspire distributed application topology.Overview of Changes
CommunityToolkit.Aspire.Hosting.Mosquittoproject to the toolkit.AddMosquittoextension method onIDistributedApplicationBuilder.1883.WithDataVolumeandWithDataBindMount) and configuration overrides (mosquitto.conf).PR Checklist
Other information
The implementation pins the
eclipse-mosquittoimage fromdocker.ioto the stable, fully-versioned release tag2.0.22rather than using a floating tag, ensuring deterministic local builds for developers.