publish "image source" in the registry

オープン
#140 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, git, go

調査の方向性

Start by reading the linked tarscrub.go filter in docker-library/bashbrew to understand what a filtered build context would contain, then inspect the scripts in this repo that generate source IDs and build IDs. Trace where BuildKit provenance is assembled and where the Dockerfile is currently embedded, since that is the insertion point for a published build-context tarball. Done means a documented, testable path for attaching the filtered context to image provenance, with a decision recorded on whether to pre-publish tarballs.

索引モデルが issue の本文から書いたものです。

説明

The current BuildKit provenance objects we include have the full Dockerfile in them, but it's buried and obscured -- it would be really interesting for us to include the full build context somewhere in the registry/image provenance, especially after we implement https://github.com/docker-library/bashbrew/blob/f71d6ef63e1f5abe6d5cb06a62a3e5e42d68566e/pkg/tarscrub/tarscrub.go#L10 (because it could then be the "filtered" version of the build context, so it's literally just the elements that went into the build).

IMO building off that same tarball would then be even more meaningful than the current build-from-Git-URL that we do, and would also have the benefit of being generally more performant (since we'd be able to more directly control the Git fetching bits).

We could also do crazy things like pre-publish those tarballs and build directly from the published tarballs instead of doing the Git fetching at image build time, but that might be a step too far.

主要言語
Go
スター
19
フォーク
24
平均マージ
8日 22時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker-library/meta-scripts のほかの issue

docker-library/meta-scripts の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。