我为kubeflow管道部署创建了一个cloudbuild.json但是它给出了错误提示说文件不存在

问题描述

这是我的cloudbuild.json

{
    "steps": [
        {
            "name": "gcr.io/cloud-builders/docker","args": [
                "build","-t","trainer_image","."
            ],"dir": "./trainer_image/"
        },{
            "name": "gcr.io/cloud-builders/docker","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/"
        },"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构建提交。--config cloudbuild.json”

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

解决方法

您的Dockerfile中有什么?

“ dsl-compile --py covertype_training_pipeline.py-输出covertype_training_pipeline.yaml”

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

“ dir”:“ ./pipeline /”

您确定此相对路径正确吗?

P.S。您可以创建自编译管道,从而使dsl-compile脱离画面。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...