forked from afoerster/kudu-docker
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
42 lines (34 loc) · 1.21 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM centos:7
ARG KUDU_VERSION=1.15.0
ARG PARALLEL=4
ARG APACHE_MIRROR="http://mirror.netcologne.de/apache.org"
RUN yum -y install centos-release-scl
RUN yum -y install cyrus-sasl-devel cyrus-sasl-gssapi \
cyrus-sasl-plain flex git java-1.8.0-openjdk-devel \
krb5-server krb5-workstation libtool make openssl-devel patch pkgconfig \
redhat-lsb-core rsync unzip vim-common which \
devtoolset-8
ENV KUDU=apache-kudu-${KUDU_VERSION}
ENV KUDU_URL="${APACHE_MIRROR}/kudu/${KUDU_VERSION}/${KUDU}.tar.gz"
# https://kudu.apache.org/docs/installation.html#build_from_source
RUN cd /tmp &&\
curl $KUDU_URL | tar -xz &&\
cd ${KUDU} &&\
build-support/enable_devtoolset.sh thirdparty/build-if-necessary.sh &&\
mkdir -p build/release &&\
cd build/release &&\
../../build-support/enable_devtoolset.sh \
../../thirdparty/installed/common/bin/cmake \
-DCMAKE_BUILD_TYPE=release \
../.. &&\
make -j${PARALLEL} &&\
mkdir -p /opt/kudu &&\
make DESTDIR=/opt/kudu install &&\
cp bin/kudu /opt/kudu/ &&\
cp bin/kudu-tserver /opt/kudu/ &&\
cp bin/kudu-master /opt/kudu/ &&\
cp -r ../../www /opt/kudu/ &&\
rm -rf /tmp/${KUDU}
WORKDIR /opt/kudu
COPY ./entrypoint /opt/kudu
ENTRYPOINT ["/opt/kudu/entrypoint"]