-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
35 lines (21 loc) · 1.34 KB
/
Dockerfile
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
# VERSION 0.1
# DOCKER-VERSION 0.8.0
# AUTHOR: Santiago del Castillo
# DESCRIPTION: Image with Scribe
# TO_BUILD: docker build -rm -t scribe .
# TO_RUN: docker run -p 1463:1463 scribe
FROM ubuntu:12.04
MAINTAINER Santiago del Castillo, Version: 0.1.0
RUN apt-get update; \
apt-get -y install make libboost-all-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev git-core
RUN git clone -b 0.9.1 https://github.com/apache/thrift.git
RUN cd /thrift && ./bootstrap.sh && ./configure --with-java=no --with-erlang=no --with-php=no --with-perl=no --with-php_extension=no --with-ruby=no --with-haskell=no --with-go=no && make && make install
RUN cd /thrift/contrib/fb303 && ./bootstrap.sh && ./configure --without-java --without-php && make && make install && cd py && python setup.py install && make distclean
RUN git clone https://github.com/facebook/scribe.git
RUN cd /scribe && ./bootstrap.sh && ./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DBOOST_FILESYSTEM_VERSION=2" LIBS="-lboost_system -lboost_filesystem" && make && make install && cd lib/py && python setup.py install && make distclean
RUN mkdir /var/lib/scribe/
ADD config/scribe.conf /etc/
# expose scribe
EXPOSE 1463
RUN ldconfig
CMD ["/usr/local/bin/scribed", "-c", "/etc/scribe.conf"]