Skip to content
DocsTry Aspire
DocsTry

JavaAppContainerResourceOptions Properties

ClassProperties7 members
This represents the options entity for configuring a Java application running in a container.
ArgsSection titled Argsnullablestring[]?
Gets or sets the arguments to pass to the Java application.
public string[]? Args { get; set; }
ContainerImageNameSection titled ContainerImageNamenullablestring?
Gets or sets the container image name.
public string? ContainerImageName { get; set; }
ContainerImageTagSection titled ContainerImageTagstring
Gets or sets the container image tag. Default is latest.
public string ContainerImageTag { get; set; }
ContainerRegistrySection titled ContainerRegistrynullablestring?
Gets or sets the container registry. Default is docker.io.
public string? ContainerRegistry { get; set; }
OtelAgentPathSection titled OtelAgentPathnullablestring?
Gets or sets the OpenTelemetry Java Agent path.
public string? OtelAgentPath { get; set; }
Gets or sets the port number. Default is 8080.
public int Port { get; set; }
Gets or sets the target port number. Default is 8080.
public int TargetPort { get; set; }