问题描述
这是我的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脱离画面。