Use Docker buildx build context to dynamically replace FROM statements in Dockerfiles
- 主要言語
- C#
- スター
- 182
- フォーク
- 67
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 10
説明
Docker `buildx` has a feature that allows you to dynamically override any of the FROM statements in a Dockerfile at build-time. For example, `--build-context mcr.microsoft.com/dotnet/runtime:8.0=mycustomacr.azurecr.io/repo:tag`.
https://docs.docker.com/reference/cli/docker/buildx/build/#build-context
This means we wouldn't need to parameterize the source REPO of many of our Dockerfiles like we do today, making our Dockerfiles cleaner:
https://github.com/dotnet/dotnet-docker/blob/87b3735c6c2ba37277be80dd04099f6cb93e4bb7/src/aspnet/8.0/alpine3.18/arm32v7/Dockerfile#L1-L2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the referenced src/aspnet/8.0/alpine3.18/arm32v7/Dockerfile and the Docker buildx build-context documentation. Trace how this repository generates or builds Dockerfiles, then identify the affected parameterized FROM statements and build commands. Done means the relevant Dockerfiles use build contexts for dynamic base-image replacement without the current source-repository parameterization.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100