Update Dockerfiles

This commit is contained in:
Nikolay Volosatov 2016-06-16 13:24:37 +03:00
parent 8a65c867f7
commit 02da521030
2 changed files with 3 additions and 10 deletions

View File

@ -1,14 +1,9 @@
FROM ubuntu:14.04
ENV CLICKHOUSE_VERSION 1.1.53981
RUN mkdir -p /etc/apt/sources.list.d && \
echo "deb http://repo.yandex.ru/clickhouse/trusty/ dists/stable/main/binary-amd64/" | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get update && \
apt-get install --force-yes -y clickhouse-client="$CLICKHOUSE_VERSION" && \
apt-get install --allow-unauthenticated -y clickhouse-client && \
rm -rf /var/lib/apt/lists/* /var/cache/
ENV CLICKHOUSE_HOST localhost
ENV CLICKHOUSE_PORT 9000
CMD ["sh", "-c", "clickhouse-client --host ${CLICKHOUSE_HOST} --port ${CLICKHOUSE_PORT}"]
ENTRYPOINT ["/usr/bin/clickhouse-client"]

View File

@ -1,11 +1,9 @@
FROM ubuntu:14.04
ENV CLICKHOUSE_VERSION 1.1.53981
RUN mkdir -p /etc/apt/sources.list.d && \
echo "deb http://repo.yandex.ru/clickhouse/trusty/ dists/stable/main/binary-amd64/" | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get update && \
apt-get install --force-yes -y clickhouse-server-common="$CLICKHOUSE_VERSION" && \
apt-get install --allow-unauthenticated -y clickhouse-server-common && \
rm -rf /var/lib/apt/lists/* /var/cache/
RUN chown -R metrika /etc/clickhouse-server/