Spring Cloud Dataflow Kubernetes 从 dockerfile 获取 jar 的属性 [英] Spring Cloud Dataflow Kubernetes get properties of jar from dockerfile

查看:27
本文介绍了Spring Cloud Dataflow Kubernetes 从 dockerfile 获取 jar 的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过docker image url将它作为任务应用程序导入spring cloud dataflow kubernetes服务器时,如何读取我作为任务创建的JAR的属性?

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?

推荐答案

您会注意到 安装 参考指南部分.

You'll notice the following in the Installation section of the reference guide.

目前,Kubernetes 的数据流服务器仅支持使用 --uri 属性注册并指向 Docker 资源的应用程序.但是,我们确实为 --metadata-uri 属性支持 Maven 资源,该属性用于列出每个应用程序支持的属性.

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.

一旦你有一个 专用配套工件(参见:maven 插件),您将能够将 docker 工件与配套工件一起注册分别通过 --uri--metadata-uri 属性.

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.

没有其他解决方案可以直接从 Docker 映像解析属性.过去我们尝试过不同的方法,但都没有奏效.如果您有想法,请随时打开拉取请求,我们可以从那里获取.

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.

这篇关于Spring Cloud Dataflow Kubernetes 从 dockerfile 获取 jar 的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆