我已经创建了一个基础Docker https://github.com/streamsets/datacollector-docker映像。
现在按入口点重新启动流集数据收集器。 因此,现在我根据上面的基本映像创建了另一个子dockerfile,在其中复制了大量与管道相关的lib(这不是问题)。现在,在此子dockerfile的末尾,我必须使用curl发布一个管道。在此子dockerfile文件中,我已将管道复制到/ tmp文件夹。 我的问题是如何在子dockerfile中使用CURL发布json pipeline。知道流集已从基础开始运行。 所以,我的shell脚本看起来像这样curl --noproxy localhost:18631 --insecure --silent --request POST http://localhost:18631/rest/v1/pipeline/test/import" --user xxx:xxxx --data-binary @/tmp/pipeline.json" --header "Content-Type: application/json" --header "X-Requested-By:sdc" --write-out "%{http_code}" --output /tmp/sdc-pipeline-response.json
0 个答案:
没有答案