Files
Rahul 44e91268e0 ci: trigger rebuild of client Docker images with SBOM/provenance attestations
Add a comment to each client integration Dockerfile to change their
digest and force a rebuild via master CI. This is needed because the
per-platform images were last built on Feb 20 (before the SBOM/provenance
pipeline was fixed) and will never be rebuilt automatically since no
Dockerfile has changed since then.

Once rebuilt, master CI will produce OCI image indices with attestation
manifests, improving Docker Scout supply chain security scores.

Follows #97903 (enable SBOM/provenance in docker.py) and #98511 (fix
incompatible --builder default and inline cache flags).
2026-03-03 09:46:15 -08:00

20 lines
670 B
Docker

# docker build -t clickhouse/mysql-golang-client .
# MySQL golang client docker container
# Rebuild to enable SBOM/provenance attestations (see #97903, #98511)
FROM golang:1.24-alpine
RUN apk --no-cache upgrade
WORKDIR /opt
COPY ./main.go main.go
# Pin to commit 217d05049 (pre-v1.6.0): v1.7.0+ changed MySQLError.Error()
# format to include SQL state ("Error 81 (HY000): ..."), breaking test assertions
# that expect the old format ("Error 81: ..."). Using the exact same commit as
# the original golang:1.17 Dockerfile to guarantee identical driver behavior.
RUN go mod init none \
&& go get github.com/go-sql-driver/mysql@217d05049 \
&& go build main.go