2018-05-30 19:26:36 +00:00
|
|
|
FROM ubuntu:18.04
|
2016-06-15 16:50:33 +00:00
|
|
|
|
2018-03-16 23:11:15 +00:00
|
|
|
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
|
2018-09-07 01:43:52 +00:00
|
|
|
ARG version=18.12.8
|
2017-03-15 09:27:54 +00:00
|
|
|
|
2018-03-12 13:44:06 +00:00
|
|
|
RUN apt-get update && \
|
2018-04-07 03:47:54 +00:00
|
|
|
apt-get install -y apt-transport-https dirmngr && \
|
2017-02-16 16:18:54 +00:00
|
|
|
mkdir -p /etc/apt/sources.list.d && \
|
2018-04-07 03:47:54 +00:00
|
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 && \
|
2017-03-15 09:27:54 +00:00
|
|
|
echo $repository | tee /etc/apt/sources.list.d/clickhouse.list && \
|
2018-03-12 13:44:06 +00:00
|
|
|
apt-get update && \
|
2018-06-06 16:05:53 +00:00
|
|
|
env DEBIAN_FRONTEND=noninteractive apt-get install --allow-unauthenticated -y clickhouse-client=$version clickhouse-common-static=$version locales tzdata && \
|
2017-03-04 13:55:53 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* /var/cache/debconf && \
|
2018-03-12 13:44:06 +00:00
|
|
|
apt-get clean
|
2016-06-15 16:50:33 +00:00
|
|
|
|
2017-10-03 15:33:52 +00:00
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2016-06-16 10:24:37 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/clickhouse-client"]
|