首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用ubi的码头建造商图像

使用ubi的码头建造商图像
EN

Stack Overflow用户
提问于 2020-08-25 21:30:01
回答 1查看 282关注 0票数 1

尝试使用ibmcom/websphere-liberty:full-java8-ibmjava-ubi (RHEL8.2 8.2)作为构建器映像并尝试安装ant但没有成功

代码语言:javascript
复制
[root@d68aa2dcc111 /]# yum -y install ant
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:26:00 ago on Tue Aug 25 21:01:43 2020.
No match for argument: ant
Error: Unable to find a match: ant```
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-26 12:54:00

您可以通过“wget”安装获取二进制文件:

代码语言:javascript
复制
ENV ANT_VERSION=1.10.8
RUN wget http://archive.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz \
    && tar xvfvz apache-ant-${ANT_VERSION}-bin.tar.gz -C /opt \
    && ln -sfn /opt/apache-ant-${ANT_VERSION} /opt/ant \
    && sh -c 'echo ANT_HOME=/opt/ant >> /etc/environment' \
    && ln -sfn /opt/ant/bin/ant /usr/bin/ant \
    && rm apache-ant-${ANT_VERSION}-bin.tar.gz
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63587396

复制
相关文章

相似问题

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