forked from afoerster/kudu-docker
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build following Kudu documentation, Kudu 1.8.0
- Loading branch information
1 parent
da8f926
commit 76ec346
Showing
3 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
FROM centos:7 | ||
|
||
ARG KUDU_VERSION=1.7.1 | ||
ARG KUDU_VERSION=1.8.0 | ||
ARG PARALLEL=4 | ||
ARG APACHE_MIRROR="http://mirror.netcologne.de/apache.org" | ||
|
||
ENV KUDU=apache-kudu-${KUDU_VERSION} | ||
ENV KUDU_URL="http://www.apache.org/closer.cgi?filename=kudu/${KUDU_VERSION}/${KUDU}.tar.gz&action=download" | ||
|
||
ADD . /repo | ||
|
||
RUN yum install -y autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi \ | ||
cyrus-sasl-plain gcc gcc-c++ gdb git krb5-server krb5-workstation libtool \ | ||
make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common \ | ||
which flex java-1.8.0-openjdk-devel | ||
|
||
ADD $KUDU_URL /tmp/${KUDU}.tar.gz | ||
RUN yum -y install autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi \ | ||
cyrus-sasl-plain flex gcc gcc-c++ gdb 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 | ||
|
||
RUN echo "Downloading $KUDU_URL" \ | ||
&& cd /tmp \ | ||
&& tar xf ${KUDU}.tar.gz \ | ||
&& /repo/build-kudu \ | ||
&& rm -r /tmp/* | ||
|
||
|
||
COPY ./entrypoint / | ||
|
||
WORKDIR /app | ||
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"] | ||
|
||
ENTRYPOINT ["/entrypoint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters