mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
The fork already renamed its internals - the built binary is datastore, the packages are datastore-server and friends, and the shipped config.xml already says Datastore - but the surfaces a human reads still said ClickHouse. Issue templates asked which ClickHouse version was affected, the PR template told contributors to close upstream's issues, and CI job names, log lines, error messages and argparse descriptions named a product this repo does not ship. Only prose moved: display names, log and error messages, comments, docstrings and form labels. Everything a machine resolves stayed exactly as it was, because renaming those breaks a build rather than a sentence - binary and path tokens such as clickhouse-client and /etc/clickhouse-server, python and shell identifiers, CLICKHOUSE_* environment variables, the /ClickHouse container mount, docker images in a namespace we do not own, S3 buckets, maven and pypi coordinates, and every URL pointing at upstream. The attribution in NOTICE and README is untouched. Two links were wrong rather than merely stale, so they are corrected here. The PR template's Closes and Related placeholders sent contributors to upstream's tracker instead of this one, and an earlier pass had rewritten a source reference to github.com/Datastore/Datastore, which does not resolve. Co-authored-by: Hanzo Dev <[email protected]>
22 lines
941 B
Docker
22 lines
941 B
Docker
# docker build -t clickhouse/mysql-java-client .
|
|
# MySQL Java client docker container
|
|
# Rebuild to enable SBOM/provenance attestations (see #97903, #98511)
|
|
|
|
FROM eclipse-temurin:21-jdk-alpine
|
|
|
|
RUN apk --no-cache add curl
|
|
|
|
# Connector/J 8.2.0+ (including 9.x) reads the `info` field of the MySQL `OK`
|
|
# packet as a length-encoded string; it used to be pinned to 8.1.0 because
|
|
# Datastore wrote that field as a plain string and newer drivers failed to
|
|
# connect. Fixed by length-encoding `info` (see #84542), so test against a
|
|
# modern driver. CLASSPATH=. is required so javac-compiled .class files in the
|
|
# WORKDIR are found at runtime.
|
|
ARG ver=9.7.0
|
|
RUN curl -L -o /mysql-connector-j-${ver}.jar https://repo1.maven.org/maven2/com/mysql/mysql-connector-j/${ver}/mysql-connector-j-${ver}.jar
|
|
ENV CLASSPATH=.:/mysql-connector-j-${ver}.jar
|
|
|
|
WORKDIR /jdbc
|
|
COPY MySQLJavaClientTest.java MySQLJavaClientTest.java
|
|
RUN javac MySQLJavaClientTest.java
|