gpt4 book ai didi

open-liberty - 内核超薄 UBI docker 镜像不适用于 springBootUtility

转载 作者:行者123 更新时间:2023-12-04 07:20:01 24 4
gpt4 key购买 nike

团队,是否可以将 springBootUtility 与 OpenLiberty kernel-slim UBI 图像(例如 - kernel-slim-java8-openj9-ubi)一起使用?
https://openliberty.io/docs/21.0.0.7/reference/command/springbootUtility-thin.html
因为,它给出了一个错误

Step 3/11 : RUN springBootUtility thin --sourceAppPath=/staging/fat-order-0.0.1-SNAPSHOT.jar --targetThinAppPath=/staging/thin-order-0.0.1-SNAPSHOT.jar --targetLibCachePath=/staging/lib.index.cache---> Running in 3023c669c4d7/bin/sh: springBootUtility: command not found


springBootUtility 仅适用于 OpenLiberty 完整 UBI 图像

最佳答案

kernel-slim image 似乎根本没有该命令。比较 kernel-slim :

bash-5.1$ docker run --rm -it openliberty/open-liberty:kernel-slim-java8-openj9-ubi ls /opt/ol/wlp/bin
auditUtility binaryLog.bat productInfo securityUtility.bat serverSchemaGen
auditUtility.bat featureUtility productInfo.bat server serverSchemaGen.bat
binaryLog featureUtility.bat securityUtility server.bat tools
full :
bash-5.1$ docker run --rm -it openliberty/open-liberty:full-java8-openj9-ubi ls /opt/ol/wlp/bin
auditUtility binaryLog.bat featureUtility pluginUtility securityUtility.bat springBootUtility
auditUtility.bat client featureUtility.bat pluginUtility.bat server springBootUtility.bat
batchManager client.bat jaxb productInfo server.bat tools
batchManager.bat ddlGen jaxrs productInfo.bat serverSchemaGen
binaryLog ddlGen.bat jaxws securityUtility serverSchemaGen.bat
文档中似乎有一个漏洞,因为没有任何迹象表明您需要这样做,但是您需要安装 springBoot在添加命令之前将功能导入 Open Liberty。将指定 spring boot 的 server.xml 复制到镜像中,然后运行 ​​ features.sh :
COPY --chown=1001:0 server.xml /config/
RUN features.sh
之后, springBootUtility将被放置在 /opt/ol/wlp/bin dir 并且应该在路径上,以便进一步使用 Dockerfile 指令。

关于open-liberty - 内核超薄 UBI docker 镜像不适用于 springBootUtility,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68562123/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com