8000 chore: enable SBOM attestation for image builds by matifali · Pull Request #16852 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: enable SBOM attestation for image builds #16852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: enable SBOM and containerd support in Docker builds
Added SBOM (Software Bill of Materials) generation during Docker build to enhance traceability. Refer to Docker documentation on SBOM: docs.docker.com/build/metadata/attestations/sbom
Updated Docker build scripts to use BuildKit for provenance and SBOM support: docs.docker.com/build/metadata/attestations
Configured Docker daemon to support the Containerd snapshotter feature to improve performance: docs.docker.com/engine/storage/containerd
  • Loading branch information
matifali committed Mar 7, 2025
commit f111de2bd3e6fc8c69094b3304d4e3ddf5ccea5f
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ jobs:
file: scripts/Dockerfile.base
platforms: linux/amd64,linux/arm64,linux/arm/v7
provenance: true
sbom: true
pull: true
no-cache: true
push: true
Expand Down
5 changes: 4 additions & 1 deletion dogfood/contents/files/etc/docker/daemon.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"registry-mirrors": ["https://mirror.gcr.io"]
"registry-mirrors": ["https://mirror.gcr.io"],
"features": {
"containerd-snapshotter': true
}
}
4 changes: 3 additions & 1 deletion scripts/build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,12 @@ fi

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

docker build \
docker buildx build \
--platform "$arch" \
--build-arg "BASE_IMAGE=$base_image" \
--build-arg "CODER_VERSION=$version" \
--provenence true \
--sbom true \
--no-cache \
--tag "$image_tag" \
-f Dockerfile \
Expand Down
0