dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.91k stars 476 forks source link

Setting dapr sidecar HTTP port for a custom container doesn't result in correct flag being passed #6505

Closed atrauzzi closed 3 weeks ago

atrauzzi commented 4 weeks ago

Is there an existing issue for this?

Describe the bug

var authentikServer = builder
    .AddContainer("authentik-server", "ghcr.io/goauthentik/server")
    // ...redacted...
    .WithDaprSidecar(new DaprSidecarOptions
    {
        RuntimePath = daprSidecarOptions.RuntimePath,
        DaprHttpPort = 31336,
    })
;
[
  "run",
  "--app-id",
  "authentik-server",
  "--runtime-path",
  "/home/atrauzzi/Development/whatever/development/AppHost/",
  "--app-port",
  "8079",
  "--dapr-grpc-port",
  "46483",
  "--dapr-http-port",
  "43103",
  "--metrics-port",
  "41369",
  "--app-channel-address",
  "localhost",
  "--app-protocol",
  "http"
]

Image

Image

It looks like it's configuring the port for ingress somehow though? I can reach the sidecar if I use the randomly generated port, but I get nothing at 31336 in this specific example.

Expected Behavior

When I try to do dapr things to port 31336, it should work.

atrauzzi commented 3 weeks ago

This might be fine, closing and will reopen/recreate if it's a real issue still.