ClickHouse/docker/test/integration/mysql_java_client/Dockerfile
2023-09-12 18:39:03 +02:00

16 lines
501 B
Docker

# docker build -t clickhouse/mysql-java-client .
# MySQL Java client docker container
FROM openjdk:8-jdk-alpine
RUN apk --no-cache add curl
ARG ver=8.1.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=$CLASSPATH:/mysql-connector-j-${ver}.jar
WORKDIR /jdbc
COPY Test.java Test.java
COPY PreparedStatementsTest.java PreparedStatementsTest.java
RUN javac Test.java PreparedStatementsTest.java