This repository was archived by the owner on Jan 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 1.35 KB
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 1.35 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
# dockerfile by baigang
#
FROM centos:centos6
MAINTAINER Sina Ad Algo Team <adtech-algo@staff.sina.com.cn>
# install main pkgs
RUN yum -y install epel-release; yum clean all
RUN yum -y install gcc gcc-c++ ; yum clean all
RUN yum -y install tar ; yum clean all
RUN yum -y install boost-devel ; yum clean all
RUN yum -y install libunwind ; yum clean all
RUN yum -y install libevent-devel ; yum clean all
RUN yum -y install zlib-devel ; yum clean all
RUN yum -y install openssl-devel ; yum clean all
# install Apache Thrift
ADD http://mirrors.cnnic.cn/apache/thrift/0.9.1/thrift-0.9.1.tar.gz thrift-0.9.1.tar.gz
RUN tar xzf thrift-0.9.1.tar.gz && cd thrift-0.9.1 && ./configure --enable-shared --without-python --without-tests && make -j4 && make install #&& cd .. && rm -rf thrift-0.9.1*
RUN mkdir -p /home/sina/include \
&& mkdir -p /home/sina/bin \
&& mkdir -p /home/sina/lib64 \
&& mkdir -p /home/sina/conf \
&& mkdir -p /home/sina/share/recomm_plugins \
&& mkdir -p /home/sina/log/indexing_replay_log
ADD server.app /home/sina/bin/recomm_server
ADD conf/recomm_plugin.conf /home/sina/conf/recomm_plugin.conf
ADD conf/redis_cluster.conf /home/sina/conf/redis_cluster.conf
ADD conf/recomm_plugin.conf /home/sina/conf/recomm_plugin.conf
EXPOSE 5300
EXPOSE 5100
CMD ["/home/sina/bin/recomm_server", "--flagfile", "/home/sina/conf/recomm_server.conf"]