首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么WLP installUtility不能从功能回购中获得资产?

为什么WLP installUtility不能从功能回购中获得资产?
EN

Stack Overflow用户
提问于 2021-05-05 15:41:35
回答 1查看 288关注 0票数 1

我正在使用下面的Dockerfile运行docker构建,主要思想是使用功能回购( feature ),如所描述的https://github.com/WASdev/ci.docker#installing-liberty-features-from-local-repository-19008

代码语言:javascript
复制
    FROM websphere-liberty-kernel-ubi-min:19.0.0.9
    COPY usr/ /opt/ibm/wlp/usr/
    USER root
    ARG FEATURE_REPO_URL=http://xyz.openshift.local/19.0.0.9/repo.zip
    ARG VERBOSE=true
    RUN configure.sh
    RUN  chown -R 1001:0 /tmp \
      && chmod -R g+rw /tmp \
      && chown -R 1001:0 /opt/ibm/wlp/output \
      && chmod -R g+rw /opt/ibm/wlp/output \
      && chown -R 1001:0 /opt/ibm/wlp/usr/servers/defaultServer \
      && chmod -R g+rw /opt/ibm/wlp/usr/servers/defaultServer \
      && chown -R 1001:0 /opt/ibm/wlp/usr/shared/resources \
      && chmod -R g+rw /opt/ibm/wlp/usr/shared/resources
    USER 1001

Docker输出显示下载了repo.zip,并检测到缺少的功能:

代码语言:javascript
复制
+ '[' http://xyz.openshift.local/19.0.0.9/repo.zip ']'
+ curl -k --fail http://xyz.openshift.local/19.0.0.9/repo.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 14 311M 14 44.8M 0 0 55.0M 0 0:00:05 --:--:-- 0:00:05 54.9M 31 311M 31 99.4M 0 0 54.8M 0 0:00:05 0:00:01 0:00:04 54.7M 49 311M 49 152M 0 0 54.2M 0 0:00:05 0:00:02 0:00:03 54.2M 66 311M 66 207M 0 0 54.4M 0 0:00:05 0:00:03 0:00:02 54.4M 83 311M 83 260M 0 0 54.0M 0 0:00:05 0:00:04 0:00:01 54.0M 99 311M 99 310M 0 0 53.4M 0 0:00:05 0:00:05 --:--:-- 53.1M100 311M 100 311M 0 0 53.4M 0 0:00:05 0:00:05 --:--:-- 52.7M
+ installUtility install --acceptLicense defaultServer --from=/tmp/repo.zip
Checking for missing features required by the server ...
The server requires the following additional features: mpconfig-1.3 transportsecurity-1.0 cdi-2.0 mpopenapi-1.0 jaxws-2.2 jsonp-1.1 jpa-2.2 mprestclient-1.3 mphealth-2.1 wssecurity-1.1 jaxrs-2.1. Installing features from the repository ...
Successfully connected to the configured repository.

但是,所有功能的安装都失败了:

代码语言:javascript
复制
Preparing assets for installation. This process might take several minutes to complete.
CWWKF1259E: Unable to obtain the following assets: mpconfig-1.3 transportsecurity-1.0 cdi-2.0 mpopenapi-1.0 jaxws-2.2 jsonp-1.1 jpa-2.2 mprestclient-1.3 mphealth-2.1 wssecurity-1.1 jaxrs-2.1. Ensure that the specified assets are valid. To find the IDs of applicable assets, run the installUtility find command.

我在下载的repo.zip中查看了一下,我可以找到以下文件(应该与缺少的特性之一相匹配):

那么,错误的原因是什么呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-05-07 12:30:22

使用不同的映像(ibmcom/websphere-liberty:some21.0.0.3version)并将FEATURE_REPO_URL指向承载21.0.0.3repo的位置。

所以,不管是谁为我准备了19.0.0.3的图像,并说要使用哪一种回购功能,都会告诉我一些不兼容的艺术品。

有趣的是,当我组合不同版本的映像与回购时,configure.sh非常冗长(它解释了不兼容),但是这个错误CWWKF1259E: Unable to obtain the following assets确实没有帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67404506

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档