2019-06-04 13:01:16 +00:00
|
|
|
# docker build -t yandex/clickhouse-integration-test .
|
2020-03-25 12:12:03 +00:00
|
|
|
FROM ubuntu:19.10
|
2019-07-09 19:41:22 +00:00
|
|
|
|
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 \
|
|
|
|
python \
|
|
|
|
libreadline-dev \
|
|
|
|
libicu-dev \
|
|
|
|
bsdutils \
|
2020-03-25 12:12:03 +00:00
|
|
|
llvm-9 \
|
2019-12-13 13:56:53 +00:00
|
|
|
gdb \
|
|
|
|
unixodbc \
|
|
|
|
odbcinst \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libsqliteodbc \
|
|
|
|
odbc-postgresql \
|
|
|
|
sqlite3 \
|
|
|
|
curl \
|
|
|
|
tar \
|
|
|
|
tzdata
|
|
|
|
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
|
|
|
|
RUN curl 'https://cdn.mysql.com//Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.18-linux-glibc2.12-x86-64bit.tar.gz' --output 'mysql-connector.tar.gz' && tar -xzf mysql-connector.tar.gz && cd mysql-connector-odbc-8.0.18-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
|
|
|
|
|
|
|
ENV TZ=Europe/Moscow
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
2019-03-21 09:21:56 +00:00
|
|
|
|
2019-12-13 16:23:20 +00:00
|
|
|
# Sanitizer options
|
|
|
|
RUN echo "TSAN_OPTIONS='verbosity=1000 halt_on_error=1 history_size=7'" >> /etc/environment; \
|
2019-05-22 08:43:27 +00:00
|
|
|
echo "UBSAN_OPTIONS='print_stacktrace=1'" >> /etc/environment; \
|
2019-12-13 16:23:20 +00:00
|
|
|
echo "MSAN_OPTIONS='abort_on_error=1'" >> /etc/environment; \
|
2020-03-25 12:12:03 +00:00
|
|
|
ln -s /usr/lib/llvm-9/bin/llvm-symbolizer /usr/bin/llvm-symbolizer;
|