Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05ebece

Browse files
authored
chore: enable SBOM attestation for image builds (#16852)
- Added SBOM (Software Bill of Materials) generation during Docker buildto enhance traceability. Refer to Docker documentation on SBOM:https://docs.docker.com/build/metadata/attestations/sbom/- Updated Docker build scripts to use BuildKit for provenance and SBOMsupport:https://docs.docker.com/build/metadata/attestations/- Configured Docker daemon in dogfood image to support the Containerdsnapshotter feature to improve performance:https://docs.docker.com/engine/storage/containerd/> [!Important]> We also need to enable `containerd` on depot runners.> <img width="587" alt="image"src="https://github.com/user-attachments/assets/1d7f87c7-fdcc-462a-babe-87ac6486ad09"/>## Testing- Tested locally with ` docker buildx build --sbom=true --outputtype=local,dest=out -f Dockerfile .` to verify that an SBOM file isgenerated.- Tested in[CI](https://github.com/coder/coder/actions/runs/13731162662/job/38408790980?pr=16852#step:17:1)to ensure the image builds without any errors.Alsoclosescoder/internal#88
1 parent8c0350e commit05ebece

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

‎.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ jobs:
361361
file:scripts/Dockerfile.base
362362
platforms:linux/amd64,linux/arm64,linux/arm/v7
363363
provenance:true
364+
sbom:true
364365
pull:true
365366
no-cache:true
366367
push:true
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"registry-mirrors": ["https://mirror.gcr.io"]
2+
"registry-mirrors": ["https://mirror.gcr.io"],
3+
"features": {
4+
"containerd-snapshotter":true
5+
}
36
}

‎scripts/build_docker.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ fi
136136

137137
log"--- Building Docker image for$arch ($image_tag)"
138138

139-
docker build \
139+
dockerbuildxbuild \
140140
--platform"$arch" \
141141
--build-arg"BASE_IMAGE=$base_image" \
142142
--build-arg"CODER_VERSION=$version" \
143+
--provenancetrue \
144+
--sbomtrue \
143145
--no-cache \
144146
--tag"$image_tag" \
145147
-f Dockerfile \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp