feature: Allow appending an arbitrary validation command to the built image
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, go
- 領域
- build-system, devops
調査の方向性
issue にはファイルやテストが記載されていないため、まず Envbuilder の Dockerfile 生成エントリポイントと、既存の設定または CLI オプションを見つけます。生成されたイメージがどのようにビルドされるかを追跡し、その後、指定された検証コマンドがイメージの push 前に最後の RUN ステップになることを、生成された Dockerfile のリグレッションカバレッジで検証します。
索引モデルが issue の本文から書いたものです。
説明
Motivation
Some image building workflows involve a final RUN command that serves to in some way validate the built image before pushing it to a remote registry (example).
For example, we may want to run a security scan of the image for CVEs using e.g. trivy, or perform a final confidence check on the image using e.g. goss.
With Envbuilder, the built image is only available inside the running envbuilder container, so it can't be scanned easily by external processes.
Solution
Allow appending an arbitrary RUN command to the Dockerfile produced by Envbuilder. An example of such a command could be:
RUN curl -fsSL -o /tmp/validate.sh https://host.internal/validate.sh && \
chmod +x /tmp/validate.sh && \
/tmp/validate.sh && \
rm -f /tmp/validate.sh
Alternatives
The above behaviour can be approximated with no code changes with the below:
- Append a RUN command to the Dockerfile containing the specific check(s) they wish to run, or
- Add the required validation steps to
devcontainer.jsonas e.g.postCreateCommand, or - Create a specific devcontainer feature that runs the desired validation commands.
- 主要言語
- Go
- スター
- 300
- フォーク
- 64
- 平均マージ
- 20分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/envbuilder のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
coder/envbuilder#506 ·
-
bug envbuilder needs-investigation
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
coder/envbuilder#495 ·
-
envbuilder Feature
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
coder/envbuilder#492 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
coder/envbuilder#484 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
coder/envbuilder#483 ·
coder/envbuilder の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
521xueweihan/HelloGitHub#3789 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 12 日以内に返信
-
stage-fail
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
siyuan-note/bazaar#2282 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openshift/kube-compare#307 ·
メンテナーはふだん 1 日以内に返信