-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (36 loc) · 1.18 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (36 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
47
FROM openjdk:8-jdk
MAINTAINER itzg
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y gcc g++ make zip && \
apt-get clean
ENV THRIFT_VERSION=0.9.3 ANT_VERSION=1.9.9
ADD http://apache.mirrors.pair.com//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz /tmp/ant.tgz
RUN tar -C /opt -xf /tmp/ant.tgz && rm /tmp/ant.tgz && \
ln -s /opt/apache-ant-${ANT_VERSION}/bin/* /usr/bin/ && /usr/bin/ant -version
ADD http://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz /tmp/thrift.tgz
RUN tar -C /tmp -xf /tmp/thrift.tgz && rm /tmp/thrift.tgz
WORKDIR /tmp/thrift-${THRIFT_VERSION}
RUN ./configure \
--with-java \
--without-cpp \
--without-qt4 \
--without-qt5 \
--without-c_glib \
--without-csharp \
--without-erlang \
--without-nodejs \
--without-lua \
--without-python \
--without-perl \
--without-php \
--without-php_extension \
--without-ruby \
--without-haskell \
--without-go \
--without-haxe \
--without-d \
&& make
RUN make install
WORKDIR /home
RUN rm -rf /tmp/thrift-${THRIFT_VERSION} && apt-get remove -y gcc g++ make
ENTRYPOINT ["/usr/local/bin/thrift"]