Skip to content

Commit

Permalink
SDK - Containers - Deprecated build_docker_image (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Oct 4, 2019
1 parent 4b33f1b commit 9fea2a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/python/kfp/containers/_component_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from collections import OrderedDict
from pathlib import Path
from typing import Callable

from deprecated.sphinx import deprecated

from ..components._components import _create_task_factory_from_component_spec
from ..components._python_op import _func_to_component_spec
from ._container_builder import ContainerBuilder
Expand Down Expand Up @@ -265,6 +268,7 @@ def build_python_component(component_func, target_image, base_image=None, depend
return task_factory_function


@deprecated(version='0.1.32', reason='`build_docker_image` is deprecated. Use `kfp.containers.build_image_from_working_dir` instead.')
def build_docker_image(staging_gcs_path, target_image, dockerfile_path, timeout=600, namespace=None):
""" build_docker_image automatically builds a container image based on the specification in the dockerfile and
pushes to the target_image.
Expand Down

0 comments on commit 9fea2a7

Please sign in to comment.