ExecutableResource

Handle
📦 Aspire.Hosting v17.0.0
interface ExecutableResource
extends IComputeResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport {
publishAsDockerFile(configure: (obj: ContainerResource) => Promise<void>): ExecutableResource;
withExecutableCommand(command: string): ExecutableResource;
withExecutableDebugSupport(
launchConfigurationType: string,
scriptPath: string,
runtimeExecutable?: string,
launchMethod?: string): ExecutableResource;
withVolume(
target: string,
name: string,
env: string,
isReadOnly?: boolean): ExecutableResource;
withWorkingDirectory(workingDirectory: string): ExecutableResource;
}

Methods

methodpublishAsDockerFilebuilder
Publishes an executable as a Docker file
publishAsDockerFile(configure: (obj: ContainerResource) => Promise<void>): ExecutableResource
configure(obj: ContainerResource) => Promise<void>Optional action to configure the container resource
ExecutableResource
Sets the command for the executable resource.
withExecutableCommand(command: string): ExecutableResource
commandstringCommand.
ExecutableResource
Adds VS Code-compatible debug metadata for an executable resource.
withExecutableDebugSupport(
launchConfigurationType: string,
scriptPath: string,
runtimeExecutable?: string,
launchMethod?: string): ExecutableResource
launchConfigurationTypestringThe launch configuration type understood by the extension.
scriptPathstringThe script path, relative to the executable working directory when not rooted.
runtimeExecutablestringoptionalThe optional runtime executable to use in the launch configuration.
launchMethodstringoptionalThe optional launch method to use in the launch configuration.
ExecutableResource
methodwithVolumebuilder
Adds a volume to an executable resource.
withVolume(
target: string,
name: string,
env: string,
isReadOnly?: boolean): ExecutableResource
targetstringThe mount path inside the published container.
namestringThe volume name.
envstringThe environment variable that receives the effective volume path.
isReadOnlybooleanoptional= FalseWhether the published volume is read-only.
ExecutableResource
Sets the working directory for the executable resource.
withWorkingDirectory(workingDirectory: string): ExecutableResource
workingDirectorystringWorking directory.
ExecutableResource