GoogleContainerTools / GoogleContainerTools/container-debug-support

Python images need to support MUSL-based systems (alpine)

未关闭
#73 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
kind/enhancement
主要语言
Go
星标
104
派生
32
PR 合并指标
30 天内没有已合并 PR

描述

The `python:xx-alpine` images require Python debugger packages setup for musl. There doesn't seem to be any image metadata to identify musl/alpine-based images, so `skaffold debug` can't select a musl-specific image. So this seems to be something that has to be detected at runtime with the new python launcher.

Alpine images:
- /etc/os-release has ID=alpine
- /lib/ld-musl-x86_64.so.1
- /lib/libc.musl-x86_64.so.1
- /lib/libapk.so.3.12.0
- no /lib64

This [answer](https://unix.stackexchange.com/a/605854/65738) cites existence of /lib/ld-musl-* and /lib/libc.musl-*.

贡献指南

打开贡献指南

调研方向

首先检查新的 Python 启动器,以及 `skaffold debug` 如何识别镜像。使用 issue 中列出的 Alpine 指示信息(例如 `/etc/os-release` 和 `/lib/ld-musl-*`)来定义运行时检测。完成标准是 Python Alpine 镜像可以接收 musl 专用的调试器设置,并能被 `skaffold debug` 选中。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
devtools
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。