代码拉取完成,页面将自动刷新
FROM ubuntu:12.04
RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y git libtool autoconf pkg-config build-essential g++ bison flex libssl-dev automake libboost-all-dev libevent-dev supervisor \
&& rm -rf /var/lib/apt/lists/*
ENV thrift_src /usr/local/src/thrift
RUN git clone https://github.com/apache/thrift.git $thrift_src \
&& cd $thrift_src && git checkout 0.9.1 \
&& ./bootstrap.sh && ./configure && make && make install
RUN cd $thrift_src/contrib/fb303 \
&& ./bootstrap.sh \
&& ./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H" \
&& make && make install
ENV scribe_src /usr/local/src/scribe
RUN git clone https://github.com/facebook/scribe.git $scribe_src \
&& cd $scribe_src && ./bootstrap.sh \
&& ./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DBOOST_FILESYSTEM_VERSION=2" LIBS="-lboost_system -lboost_filesystem" \
&& make && make install
ENV LD_LIBRARY_PATH /usr/local/lib
RUN echo "export LD_LIBRARY_PATH=/usr/local/lib" >> /etc/profile
COPY scribe.conf /etc/scribe.conf
RUN rm -rf /usr/local/src/
RUN mkdir -p /var/log/supervisor
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 1463
CMD ["/usr/bin/supervisord"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。