forked from DmitryBe/spark-clickhouse
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (19 loc) · 820 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM p7hb/docker-spark:2.1.0
ARG CLICKHOUSE_LOGS=/var/log/clickhouse-server
ENV APP_DIR /app
RUN mkdir -p /etc/apt/sources.list.d && \
apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 && \
echo "deb http://repo.yandex.ru/clickhouse/trusty stable main" | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get -y update && \
apt-get -y install clickhouse-server-common clickhouse-client && \
mkdir -p ${CLICKHOUSE_LOGS} && \
touch ${CLICKHOUSE_LOGS}/tmp
ADD docker_files/docker_start.sh /docker_start.sh
RUN mkdir -p ${APP_DIR}
WORKDIR ${APP_DIR}
# clickhouse config with cluster def
COPY /clickhouse_files/config.xml /etc/clickhouse-server/
COPY /target/pack/lib/clickhouse* ${APP_DIR}/lib/
COPY /target/pack/lib/guava* ${APP_DIR}/lib/
COPY Makefile ${APP_DIR}
ENTRYPOINT ["/docker_start.sh"]