简体   繁体   English

Spring Cloud Dataflow Kubernetes从dockerfile获取jar的属性

[英]Spring Cloud Dataflow Kubernetes get properties of jar from dockerfile

通过docker image url将其作为任务应用程序导入Spring Cloud Dataflow kubernetes服务器中时,如何读取作为任务创建的JAR的属性?

You'll notice the following in the Installation section of the reference guide. 您会在参考指南的“ 安装”部分中注意到以下内容。

Currently, only applications registered with a --uri property pointing to a Docker resource are supported by the Data Flow Server for Kubernetes. 当前,用于Kubernetes的数据流服务器仅支持使用--uri属性注册的指向Docker资源的应用程序。 However, we do support Maven resources for the --metadata-uri property, which is used to list the properties supported by each application. 但是,我们确实为--metadata-uri属性支持Maven资源,该属性用于列出每个应用程序支持的属性。

Once when you have a dedicated companion artifact (see: maven plugin ), you'd be able to register the docker artifact along with the companion artifact via --uri and --metadata-uri properties respectively. 一旦有了专用的协同工件 (请参阅: maven plugin ),您就可以分别通过--uri--metadata-uri属性将docker工件连同协同工件一起注册。

There is no other solution to resolve properties directly from the Docker images. 没有其他解决方案可以直接从Docker映像解析属性。 We have tried different approaches in the past, but nothing worked out. 过去,我们尝试过不同的方法,但没有任何结果。 If you have ideas, feel free to open a pull request, we can take it from there. 如果您有想法,请随时打开请求请求,我们可以从那里接收。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM