2021-09-06 11:33:39 +00:00
|
|
|
# docker build -t clickhouse/postgresql-java-client .
|
2020-08-12 15:04:36 +00:00
|
|
|
# PostgreSQL Java client docker container
|
|
|
|
|
2020-05-30 17:04:02 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y software-properties-common build-essential openjdk-8-jdk curl
|
|
|
|
|
|
|
|
RUN rm -rf \
|
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
/var/cache/debconf \
|
|
|
|
/tmp/* \
|
|
|
|
RUN apt-get clean
|
|
|
|
|
|
|
|
ARG ver=42.2.12
|
|
|
|
RUN curl -L -o /postgresql-java-${ver}.jar https://repo1.maven.org/maven2/org/postgresql/postgresql/${ver}/postgresql-${ver}.jar
|
|
|
|
ENV CLASSPATH=$CLASSPATH:/postgresql-java-${ver}.jar
|
|
|
|
|
|
|
|
WORKDIR /jdbc
|
|
|
|
COPY Test.java Test.java
|
|
|
|
RUN javac Test.java
|