-
Notifications
You must be signed in to change notification settings - Fork 6
This is the minimum required code to get the ports to tie from the di… #208
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,7 +32,7 @@ | |
| { | ||
| return builder.AddTemporalServerContainer(name, new TemporalServerResourceArguments()); | ||
| } | ||
| private static async Task<IResourceBuilder<TemporalServerContainerResource>> AddTemporalServerContainer(this IDistributedApplicationBuilder builder, string name, TemporalServerResourceArguments args) | ||
|
Check warning on line 35 in src/InfinityFlow.Aspire.Temporal/TemporalServerContainerBuilderExtensions.cs
|
||
| { | ||
| var container = new TemporalServerContainerResource(name, args); | ||
|
|
||
|
|
@@ -40,21 +40,21 @@ | |
| .WithAnnotation(new ContainerImageAnnotation() { Image = "temporalio/admin-tools", Tag = "latest" }) | ||
| .WithArgs(args.GetArgs()) | ||
| .WithEntrypoint("temporal") | ||
| .WithHttpsEndpoint(name: "server", port: args.Port, targetPort: 7233).AsHttp2Service(); // Internal port is always 7233 | ||
| .WithHttpsEndpoint(name: "server", port: args.Port, targetPort: args.Port).AsHttp2Service(); // Internal port is always 7233 | ||
|
|
||
| if (args.Headless is not true) | ||
| { | ||
| resourceBuilder.WithHttpEndpoint(name: "ui", port: args.UiPort, targetPort: 8233); // Internal port is always 8233 | ||
| resourceBuilder.WithHttpEndpoint(name: "ui", port: args.UiPort, targetPort: args.UiPort); // Internal port is always 8233 | ||
| } | ||
|
|
||
| if (args.MetricsPort is not null) | ||
| { | ||
| resourceBuilder.WithHttpEndpoint(name: "metrics", port: args.MetricsPort, targetPort: 7235); // Internal port is always 7235 | ||
| resourceBuilder.WithHttpEndpoint(name: "metrics", port: args.MetricsPort, targetPort: args.MetricsPort); // Internal port is always 7235 | ||
| } | ||
|
|
||
| if (args.HttpPort is not null) | ||
| { | ||
| resourceBuilder.WithHttpEndpoint(name: "http", port: args.HttpPort, targetPort: 7234); // Internal port is always 7234 | ||
| resourceBuilder.WithHttpEndpoint(name: "http", port: args.HttpPort, targetPort: args.HttpPort); // Internal port is always 7234 | ||
|
||
| } | ||
|
|
||
| return resourceBuilder; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.