Class ContainerCodeExecutor


public class ContainerCodeExecutor extends BaseCodeExecutor
A code executor that uses a custom container to execute code.
  • Constructor Details

    • ContainerCodeExecutor

      public ContainerCodeExecutor(Optional<String> baseUrl, Optional<String> image, Optional<String> dockerPath)
      Initializes the ContainerCodeExecutor.
      Parameters:
      baseUrl - Optional. The base url of the user hosted Docker client.
      image - The tag of the predefined image or custom image to run on the container. Either dockerPath or image must be set.
      dockerPath - The path to the directory containing the Dockerfile. If set, build the image from the dockerfile path instead of using the predefined image. Either dockerPath or image must be set.
  • Method Details