Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Document ways of deriving environment variables within a Dockerfile

未关闭
#109 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
52/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
dockerfile
领域
documentation

调研方向

首先阅读 README 以及关于从 Dockerfile 构建参数派生值的链接 Moby 讨论。使用简洁的示例记录列出的方案,包括它们的作用域和持久性,并确保 README 解释如何生成诸如 3.8 这样的值的带点形式和紧凑形式。

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

描述

As discussed in architecture meeting 04.05.2022.
Sometimes an argument is passed in to a Dockerfile which needs to be used in different forms e.g. for --build-arg PYTHON=3.8 we may need 3.8 in places (for e.g. product downloads), but 38 in others (microdnf commands). There are different ways of deriving and persisting one variable from another, and this issue covers documenting them with examples in the README e.g.

  • using the moby approach of choosing a specific base image (see here)
  • use an inline script wrapped by a RUN so that the derived variable is available for the scope of that command
  • source the environment variables and echo the environment to a file
  • etc.
主要语言
Dockerfile
星标
22
派生
6
平均合并
1 天 21 小时
30 天内合并 PR
30

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stackabletech/docker-images 的其他 Issue

查看 stackabletech/docker-images 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

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