OpenShift3 允许使用“S2I - Source to Image”的概念从 Github 存储库构建容器。
例如:
oc new-app codecentric/springboot-maven3-centos~https://github.com/cbelleza/spring-boot-samples.git --context-dir=spring-boot-basewebapp
有什么方法可以告知在构建期间应该执行哪些 Maven 目标?
如何设置我的应用程序需要启动的 JVM 参数,例如 -DXbootclasspath:、-Dfile.encoding 等?
最佳答案
这取决于您使用的特定 S2I 构建器是如何实现的。您需要找到该 S2I 构建器的提供者的代码和文档在哪里。
似乎您可以在以下位置找到它的文档:
他们的 repo 位于:
关于maven - 如何在 OpenShift3 中通知 S2I 构建的 Maven/JVM 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44702207/