简体   繁体   English

在部署到PaaS(Cloud Foundry)之前先扫描jar文件

[英]Scan jar files before deploying to a PaaS (Cloud Foundry)

We are developing Spring boot Apps and have those deployed in Cloud Foundry PaaS. 我们正在开发Spring boot Apps,并将其部署在Cloud Foundry PaaS中。

There are certain restrictions in our Enterprise that only approved versions of Libraries needs to be used for App Development and we would like to scan the Jar files before getting deployed in Cloud Foundry 我们的企业中存在某些限制,只有经过批准的库版本才需要用于应用程序开发,并且我们想在部署到Cloud Foundry中之前先扫描Jar文件

I would like to have this implemented in Cloud Foundry itself .. Or is there any other way ? 我想在Cloud Foundry本身中实现此功能。还是还有其他方法? such that having a Gradle Task scan the Jar and then deploy in Cloud Foundry ? 这样让Gradle Task扫描Jar,然后在Cloud Foundry进行部署?

Please suggest a good pattern to scan the Jars before deploying.. 请提出一个好的模式以在部署前扫描Jars。

The right pattern is to maintain your scanned jars in a tool like Artifactory. 正确的模式是使用Artifactory之类的工具来维护扫描的jar。

Change your maven pom files or your gradle build file to use the Artifactory for the jars needed in your build processes. 更改您的maven pom文件或gradle构建文件,以将Artifactory用于构建过程中所需的jar。

This approach allows you to control not only external jars but also custom jars that you have created internally. 这种方法不仅可以控制外部jar,还可以控制内部创建的自定义jar。

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

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