记录 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!


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

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

相关推荐
2501_9298072519 小时前
专业140+总分430+武汉理工大学855信号与系统考研武理工,电子信息和通信工程,真题大纲,参考书
考研·信息与通信·信号处理·通信·电子信息
牛奶yu茶1 天前
数据链路层的MTU
网络·网络通信·通信·通信协议·通信网络
Fibocom广和通10 天前
广和通推出RU311 5G RedCap模组,让中速终端更轻量接入5G
物联网·5g·redcap·通信·广和通·ru311
liulilittle12 天前
REALITY 代理隧道的有效检测方法: 被动、主动与确定性三层实证研究
linux·服务器·网络·网络协议·安全·网络安全·通信
liulilittle12 天前
加密扩展记录 37B(含头口径):Go TLS 栈形态特征的适用域与配对勘误
网络·网络协议·计算机网络·网络安全·通信·tls·reality
无名38712 天前
siremis 使用手册
通信
祖力5514 天前
进程间通信(IPC机制):消息队列与共享内存
linux·消息队列·共享内存·通信·进程间通信
祖力5516 天前
进程间通信(IPC机制):无名通道与有名通道
linux·运维·服务器·进程·通信·进程间通信·ipc
2501_9298072518 天前
考研初试专业课140+总分400+重庆邮电大学801信号与系统考研经验重邮,电子信息与通信工程,真题,大纲,参考书,博睿泽信息通信Jenny。
考研·信息与通信·信号处理·通信·电子信息
Logintern0921 天前
opcua如何在确认server端准备接收请求的时候,client再下发连接
opcua·通信