mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
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).
20 lines
670 B
Docker
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
|