Spring Cloud Dataflow Kubernetes get properties of jar from dockerfile

纵然是瞬间 提交于 2020-01-25 09:48:06

问题


How can i read the properties of the JAR i have created as a task when I import it as a task app in the spring cloud dataflow kubernetes server via docker image url?


回答1:


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. However, we do support Maven resources for the --metadata-uri property, which is used to list the properties supported by each application.

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.

There is no other solution to resolve properties directly from the Docker images. 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.



来源:https://stackoverflow.com/questions/53607658/spring-cloud-dataflow-kubernetes-get-properties-of-jar-from-dockerfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!