2021-09-06 11:33:39 +00:00
|
|
|
# docker build -t clickhouse/integration-test .
|
|
|
|
FROM clickhouse/test-base
|
2019-07-09 19:41:22 +00:00
|
|
|
|
2021-06-18 11:02:15 +00:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
2019-05-21 06:17:46 +00:00
|
|
|
RUN apt-get update \
|
2019-12-13 13:56:53 +00:00
|
|
|
&& env DEBIAN_FRONTEND=noninteractive apt-get -y install \
|
|
|
|
tzdata \
|
2020-10-02 16:54:07 +00:00
|
|
|
python3 \
|
2019-12-13 13:56:53 +00:00
|
|
|
libicu-dev \
|
|
|
|
bsdutils \
|
|
|
|
gdb \
|
|
|
|
unixodbc \
|
|
|
|
odbcinst \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libsqliteodbc \
|
|
|
|
odbc-postgresql \
|
|
|
|
sqlite3 \
|
|
|
|
curl \
|
2020-09-29 08:56:37 +00:00
|
|
|
tar \
|
2021-10-28 13:24:00 +00:00
|
|
|
lz4 \
|
2020-10-27 12:24:10 +00:00
|
|
|
krb5-user \
|
2021-02-26 19:05:25 +00:00
|
|
|
iproute2 \
|
2021-03-11 21:21:14 +00:00
|
|
|
lsof \
|
2021-06-18 11:02:15 +00:00
|
|
|
g++ \
|
|
|
|
default-jre
|
|
|
|
|
2019-12-13 13:56:53 +00:00
|
|
|
RUN rm -rf \
|
2019-05-21 06:17:46 +00:00
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
/var/cache/debconf \
|
|
|
|
/tmp/* \
|
2019-12-13 13:56:53 +00:00
|
|
|
RUN apt-get clean
|
|
|
|
|
|
|
|
# Install MySQL ODBC driver
|
2021-07-13 15:49:03 +00:00
|
|
|
RUN curl 'https://downloads.mysql.com/archives/get/p/10/file/mysql-connector-odbc-8.0.21-linux-glibc2.12-x86-64bit.tar.gz' --location --output 'mysql-connector.tar.gz' && tar -xzf mysql-connector.tar.gz && cd mysql-connector-odbc-8.0.21-linux-glibc2.12-x86-64bit/lib && mv * /usr/local/lib && ln -s /usr/local/lib/libmyodbc8a.so /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
|
2018-11-21 10:09:16 +00:00
|
|
|
|
2021-06-18 11:02:15 +00:00
|
|
|
# Unfortunately this is required for a single test for conversion data from zookeeper to clickhouse-keeper.
|
|
|
|
# ZooKeeper is not started by default, but consumes some space in containers.
|
|
|
|
# 777 perms used to allow anybody to start/stop ZooKeeper
|
|
|
|
ENV ZOOKEEPER_VERSION='3.6.3'
|
|
|
|
RUN curl -O "https://mirrors.estointernet.in/apache/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz"
|
|
|
|
RUN tar -zxvf apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz && mv apache-zookeeper-${ZOOKEEPER_VERSION}-bin /opt/zookeeper && chmod -R 777 /opt/zookeeper && rm apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz
|
|
|
|
RUN echo $'tickTime=2500 \n\
|
|
|
|
tickTime=2500 \n\
|
|
|
|
dataDir=/zookeeper \n\
|
|
|
|
clientPort=2181 \n\
|
|
|
|
maxClientCnxns=80' > /opt/zookeeper/conf/zoo.cfg
|
|
|
|
RUN mkdir /zookeeper && chmod -R 777 /zookeeper
|
|
|
|
|
2018-11-21 10:09:16 +00:00
|
|
|
ENV TZ=Europe/Moscow
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|