【问题标题】:I have created a cloudbuild.json for kubeflow pipeline deployment. but it is giving error saying file is not present我为 kubeflow 管道部署创建了一个 cloudbuild.json。但它给出错误说文件不存在
【发布时间】:2020-12-28 20:16:36
【问题描述】:

这是我的 cloudbuild.json

{
    "steps": [
        {
            "name": "gcr.io/cloud-builders/docker",
            "args": [
                "build",
                "-t",
                "trainer_image",
                "."
            ],
            "dir": "./trainer_image/"
        },
        {
            "name": "gcr.io/cloud-builders/docker",
            "args": [
                "build",
                "-t",
                "base_image",
                "."
            ],
            "dir": "./base_image/"
        },
        {
            "name": "gcr.io/dmgcp-pkg-internal-poc-oct-04/kfp-cli",
            "args": [
                "dsl-compile --py covertype_training_pipeline.py --output covertype_training_pipeline.yaml"
            ],
            "env": [
                "BASE_IMAGE=gcr.io/dmgcp-pkg-internal-poc-oct-04/base_image:test",
                "TRAINER_IMAGE=gcr.io/dmgcp-pkg-internal-poc-oct-04/trainer_image:test",
                "RUNTIME_VERSION=1.15",
                "PYTHON_VERSION=3.7",
                "COMPONENT_URL_SEARCH_PREFIX=https://raw.githubusercontent.com/kubeflow/pipelines/0.2.5/components/gcp/",
                "USE_KFP_SA=False"
            ],
            "dir": "./pipeline/"
        },
        {
            "name": "gcr.io/dmgcp-pkg-internal-poc-oct-04/kfp-cli",
            "args": [
                "-c",
                "kfp --endpoint 66df1d31e46e6510-dot-us-central2.pipelines.googleusercontent.com/ pipeline upload -p credit_fraud_training_test covertype_training_pipeline.yaml"
            ],
            "dir": "./pipeline/"
        }
    ],
    "images": [
        "gcr.io/dmgcp-pkg-internal-poc-oct-04/trainer_image:test",
        "gcr.io/dmgcp-pkg-internal-poc-oct-04/base_image:test"
    ]
}

问题出在第 2 步: 这是我得到的错误 “步骤#2:gcr.io/dmgcp-pkg-internal-poc-oct-04/kfp-cli:latest 步骤#2:/bin/bash: dsl-compile --py covertype_training_pipeline.py --output covertype_training_pipeline.yaml: 没有这样的文件或目录 完成步骤#2 " 我正在运行这个命令来运行管道 "!gcloud builds submit .--config cloudbuild.json"

她是我的文件夹结构 enter image description hereenter image description here

【问题讨论】:

标签: python docker google-cloud-platform kubeflow kubeflow-pipelines


【解决方案1】:

你的 Dockerfile 中有什么?

"dsl-compile --py covertype_training_pipeline.py --output covertype_training_pipeline.yaml"

您确定这可以作为单个字符串使用吗?

“目录”:“./pipeline/”

你确定这个相对路径是正确的吗?

附:您可以创建自编译管道,将 dsl-compile 排除在外。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-21
    • 2015-12-17
    • 1970-01-01
    • 1970-01-01
    • 2019-03-09
    • 2022-11-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多