devcontainers / devcontainers/cli

[feature] Enable passing --metadata-file arg to devcontainer build

オープン
#464 コメント 3 件 リアクション 0 件 担当者 1 名 @chrmarti が担当を希望しています GitHub で見る
feature-request
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
6

説明

Hi,

As we're using private registry, Jfrog Artifactory, we want to publish build info after devcontainer has been build, and pushed, so that JFrog can properly track the containers dependencies.

But currently there doesn't seem to be a straight forward way to make `devcontainer build` command export the metadata file, needed for input to JFrog CLI `jf rt build-docker-create --image-file` command.
It's possible using native `docker buildx build` (reference: https://docs.docker.com/engine/reference/commandline/buildx_build/#metadata-file)

I would like to be able to pass it like this: `devcontainer build --image-name ${IMAGE}:${TAG} --workspace-folder "src/${IMAGE}/" --metadata-file metadata.json`

If this is already possible with some temporary workarounds, I'd like to know how.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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