TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfx.components.base.executor_spec.ExecutorContainerSpec

View source on GitHub

Class ExecutorContainerSpec

A specifcation of a container.

Inherits From: ExecutorSpec

The spec includes image, command line entrypoint and arguments for a container. For example:

spec = ExecutorContainerSpec( image='docker/whalesay', command=['cowsay'], args=['hello wolrd'])

Attributes:

  • image: Container image that has executor application. Assumption is that this container image is separately release-managed, and tagged/versioned accordingly.
  • command: Container entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. The Jinja templating mechanism is used for constructing a user-specified command-line invocation based on input and output metadata at runtime.
  • args: Arguments to the container entrypoint. The docker image's CMD is used if this is not provided. The Jinja templating mechanism is used for constructing a user-specified command-line invocation based on input and output metadata at runtime.

__init__

View source

__init__(
    image,
    command=None,
    args=None
)

Initialize self. See help(type(self)) for accurate signature.

Methods

from_json_dict

View source

from_json_dict(
    cls,
    dict_data
)

Convert from dictionary data to an object.

to_json_dict

View source

to_json_dict()

Convert from an object to a JSON serializable dictionary.