SQLE源码安装报错:unable to find image ‘rpmbuild/centos7:latest‘ locally

报错信息:

当编译完成dms-ui,dms模块后,执行make docker_rpm_with_dms命令出现如下报错:

unable to find image 'rpmbuild/centos7:latest' locally
latest: Pulling from rpmbuild/centos7
docKer: [DEPRECATION NOTICE] Docker Image format VI and Docker Image manifest vesion 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/rpmbuild/centos7:latest to upgrade
the image to the 0CI Format or Docker Image manifest v2, schema 2. More informat
on at https://docs.docker.com/go/deprecated-image-specs/.
ee
'docker run --help'.
nake: *** [Makefile:159: docker rpm with dms] Error 125

原理分析:

该问题为在编译生成rpm包时需要使用到含有rpm-build软件包的centos7镜像。而这个镜像需要自己基于centos7进行制作。

问题解决:

#1.拉取centos7镜像
sudo docker pull centos:7

#2.启动镜像
sudo docker run -itd centos:7

#3.进入容器
sudo docker exec -it 容器ID /bin/bash

#4.在容器中安装rpm-build软件包
yum install rpm-build

#5.在新的命令行窗口将安装软件包的镜像打包
sudo docker commit -m 'add rpm-build' -a 'myeye' 容器ID rpmbuild/centos7:1.0.0

#6.修改sqle项目目录下的makefile文件55行
55 RPM_BUILD_IMAGE ?= rpmbuild/centos7:1.0.0

#7.重新执行编译命令即可打包得到rpm包
make docker_rpm_with_dms

  • 7
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值