flytekit.configuration.Image#
- class flytekit.configuration.Image(name, fqn, tag)[source]#
Image is a structured wrapper for task container images used in object serialization.
- fqn#
Fully qualified image name. This consists of #. a registry location #. a username #. a repository name For example: hostname/username/reponame
- Type
Methods
- classmethod from_dict(kvs, *, infer_missing=False)#
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)#
- static look_up_image_info(name, tag, optional_tag=False)[source]#
- Looks up the image tag from environment variable (should be set from the Dockerfile).
FLYTE_INTERNAL_IMAGE should be the environment variable.
This function is used when registering tasks/workflows with Admin. When using the canonical Python-based development cycle, the version that is used to register workflows and tasks with Admin should be the version of the image itself, which should ideally be something unique like the sha of the latest commit.
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)#
- to_dict(encode_json=False)#
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)#
Attributes
- full#
” Return the full image name with tag.