ExecutableResource
Handle
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;}5 members
Methods
Publishes an executable as a Docker file
publishAsDockerFile(configure: (obj: ContainerResource) => Promise<void>): ExecutableResourceParameters
configure(obj: ContainerResource) => Promise<void> Optional action to configure the container resourceReturns
ExecutableResource Sets the command for the executable resource.
withExecutableCommand(command: string): ExecutableResourceParameters
commandstringCommand.Returns
ExecutableResource Adds VS Code-compatible debug metadata for an executable resource.
withExecutableDebugSupport( launchConfigurationType: string, scriptPath: string, runtimeExecutable?: string, launchMethod?: string): ExecutableResourceParameters
launchConfigurationType stringThe launch configuration type understood by the extension.scriptPath stringThe script path, relative to the executable working directory when not rooted.runtimeExecutable stringoptionalThe optional runtime executable to use in the launch configuration.launchMethod stringoptionalThe optional launch method to use in the launch configuration.Returns
ExecutableResource Adds a volume to an executable resource.
withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ExecutableResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.isReadOnly booleanoptional= FalseWhether the published volume is read-only.Returns
ExecutableResource Sets the working directory for the executable resource.
withWorkingDirectory(workingDirectory: string): ExecutableResourceParameters
workingDirectory stringWorking directory.Returns
ExecutableResource