forked from Ranjandas/RHBase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 1.02 KB
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
FROM centos:6
MAINTAINER Ranjandas A P <thejranjan@gmail.com>
RUN yum -y install automake \
libtool \
flex \
bison \
pkgconfig \
gcc-c++ \
boost-devel \
libevent-devel \
zlib-devel \
python-devel \
ruby-devel \
openssl-devel \
epel-release \
&& yum -y install R \
&& yum clean all
ENV THRIFT_VER 0.8.0
ENV RHBASE_VER 1.2.1
RUN curl -LO http://archive.apache.org/dist/thrift/$THRIFT_VER/thrift-$THRIFT_VER.tar.gz && \
tar -xzvf thrift-$THRIFT_VER.tar.gz -C /usr/local/src && \
cd /usr/local/src/thrift-$THRIFT_VER && \
./configure --without-ruby --without-python && \
make && make install && \
ln -s /usr/local/lib/libthrift-$THRIFT_VER.so /usr/lib64/ && \
make clean all && rm /thrift-$THRIFT_VER.tar.gz
ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
RUN curl -o rhbase_$RHBASE_VER.tar.gz -LO https://github.com/RevolutionAnalytics/rhbase/blob/master/build/rhbase_$RHBASE_VER.tar.gz?raw=true && R CMD INSTALL rhbase_$RHBASE_VER.tar.gz
CMD ["R"]