记录 RTPEngine Dockerfile 的调试过程

找了个 debian 13(trixie,目前版本为 13.1) 虚拟机,安装 ngcp-rtpengine mr13.5.1,很容易就成功了

本想据此编写一个 Dockerfile 是件很容易的事情

But 打脸了

第一个版本

cat Dockerfile, 内容为:

FROM debian:trixie

COPY sipwise_mr13.4.gpg /etc/apt/keyrings/

COPY <<-"EOT" /etc/apt/sources.list

deb http://mirrors.huaweicloud.com/debian/ trixie main non-free non-free-firmware contrib

deb http://mirrors.huaweicloud.com/debian-security/ trixie-security main

deb http://mirrors.huaweicloud.com/debian/ trixie-updates main non-free non-free-firmware contrib

deb http://mirrors.huaweicloud.com/debian/ trixie-backports main non-free non-free-firmware contrib

deb [signed-by=/etc/apt/keyrings/sipwise_mr13.4.gpg] https://deb.sipwise.com/spce/mr13.5.1/ trixie main

EOT

RUN apt-get update && apt-get install -y ngcp-rtpengine

结果 build 时提示下面错误信息:

10.60 W: Failed to fetch https://deb.sipwise.com/spce/mr13.5.1/dists/trixie/InRelease SSL connection failed: error:0A000086:SSL routines::certificate verify failed / Success [IP: 164.132.119.186 443]

10.60 W: Some index files failed to download. They have been ignored, or old ones used instead.

10.68 Reading package lists...

问了 deepseek, 回答是需要 update-ca-certificates

debian:trixie 镜像只有 120 M,包含的组件比较有限

访问 huawei 用 http, 没问题

访问 sipwise 用 https,但没有安装 ca,问题就在这里

于是调整成下面这个版本:

FROM debian:trixie

COPY sipwise_mr13.4.gpg /etc/apt/keyrings/

COPY <<-"EOT" /etc/apt/sources.list

deb http://mirrors.huaweicloud.com/debian/ trixie main non-free non-free-firmware contrib

deb http://mirrors.huaweicloud.com/debian-security/ trixie-security main

deb http://mirrors.huaweicloud.com/debian/ trixie-updates main non-free non-free-firmware contrib

deb http://mirrors.huaweicloud.com/debian/ trixie-backports main non-free non-free-firmware contrib

EOT

RUN apt-get update && apt-get install -y ca-certificates

RUN echo 'deb [signed-by=/etc/apt/keyrings/sipwise_mr13.4.gpg] https://deb.sipwise.com/spce/mr13.5.1/ trixie main' > /etc/apt/sources.list.d/sipwise.list

RUN apt-get update && apt-get install -y ngcp-rtpengine

再次 build ,终于成功,版本为mr13.5.1

感谢 deepseek!


写作不易,配得上您的点赞么

如果想让我写点别的,请留言,友好交流

相关推荐
xixixi777776 小时前
量子通信是当前信息安全和通信领域最前沿、最具变革性的技术之一
安全·信息安全·量子计算·通信·量子通信·密钥·传输
栗子叶11 小时前
网页接收服务端消息的几种方式
前端·websocket·http·通信
liulilittle13 小时前
rinetd 端口转发工具技术原理
linux·服务器·网络·c++·端口·通信·转发
无名3871 天前
我碰到的 Kamailio trunk_auth 问题
通信
liulilittle2 天前
LIBTCPIP 技术探秘(tun2sys-socket)
开发语言·网络·c++·信息与通信·通信·tun
liulilittle2 天前
VEthernet 框架实现 tun2socks 的技术原理
网络·windows·c#·信息与通信·通信
liulilittle2 天前
DeepWiki: OPENPPP2 工程价值
网络·c++·网络协议·ai·信息与通信·通信
learning-striving3 天前
eNSP中OSPF协议多区域的配置实验
网络·智能路由器·ensp·通信
liulilittle3 天前
OPENPPP2 Code Analysis Three
网络·c++·网络协议·信息与通信·通信
liulilittle3 天前
OPENPPP2 Code Analysis One
网络·c++·网络协议·信息与通信·通信