1 Star 0 Fork 3

leo108 / docker_scribe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
leo108 提交于 2015-06-23 13:06 . scribe conf
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"]
1
https://gitee.com/leo108/docker_scribe.git
git@gitee.com:leo108/docker_scribe.git
leo108
docker_scribe
docker_scribe
master

搜索帮助