【发布时间】:2021-11-28 01:16:19
【问题描述】:
我一直在使用 Kubeflow dsl container op 命令在我的 Kubeflow 管道的自定义上运行 python 脚本。我的配置看起来像这样:
def test_container_op():
input_path = '/home/jovyan/'
return dsl.ContainerOp(
name='test container',
image="<image name>",
command=[
'python', '/home/jovyan/test.py'
],
file_outputs={
'modeule-logs' : input_path + 'output.log'
}
)
现在,我还想在同一个容器中运行一个名为 deploy.sh 的 bash 脚本。我还没有看到这样的例子。有没有类似的东西
command = [
'/bin/bash', '/home/jovyan/deploy.sh',
'python', '/home/jovyan/test.py'
]
不确定是否可行。非常感谢您的帮助。
【问题讨论】:
标签: kubernetes kubeflow kubeflow-pipelines