devcontainers / devcontainers/cli

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

Đang mở
#464 3 bình luận 0 reaction 1 người được giao Được @chrmarti nhận Xem trên GitHub
feature-request
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.