Created
June 12, 2018 10:41
-
-
Save markuskont/c23c39fe8d03e400f8ce42df97619847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch | |
RUN apt-get update && apt-get install -qq -y git build-essential autogen autoconf libtool pkg-config checkinstall python-docutils flex bison libgrok1 librdkafka1 libestr-dev zlib1g-dev uuid-dev libsystemd-dev libgcrypt20-dev liblogging-stdlog-dev libcurl4-gnutls-dev librdkafka-dev libgrok-dev libpcre3-dev libtokyocabinet-dev libglib2.0-dev gnutls-dev libestr-dev && apt-get -y autoremove && apt-get -y autoclean && apt-get clean | |
ENV INSTALL_PATH /src | |
RUN mkdir -p $INSTALL_PATH | |
RUN git clone https://github.com/rsyslog/libfastjson.git \ | |
&& cd libfastjson \ | |
&& git checkout tags/v0.99.8 \ | |
&& sh autogen.sh \ | |
&& ./configure \ | |
&& make \ | |
&& make install \ | |
&& cd .. && rm -r libfastjson | |
RUN git clone https://github.com/rsyslog/liblognorm.git \ | |
&& cd liblognorm \ | |
&& git checkout tags/v2.0.4 \ | |
&& autoreconf --install \ | |
&& ./configure \ | |
&& make \ | |
&& make install \ | |
&& cd .. && rm -r liblognorm | |
WORKDIR $INSTALL_PATH | |
RUN git clone https://github.com/rsyslog/rsyslog/ \ | |
&& cd rsyslog \ | |
&& git checkout tags/v8.35.0 \ | |
&& ./autogen.sh \ | |
&& ./configure \ | |
--prefix=/opt/rsyslog \ | |
--enable-elasticsearch \ | |
--enable-imkafka \ | |
--enable-imjournal \ | |
--enable-omkafka \ | |
--enable-mmnormalize \ | |
--enable-mmjsonparse \ | |
--enable-mmgrok \ | |
--enable-mmrm1stspace \ | |
--enable-gnutls \ | |
--enable-omuxsock \ | |
--enable-mmanon \ | |
--enable-mmfields \ | |
&& make && make install \ | |
&& cd ../ && rm -r rsyslog | |
RUN mkdir /var/run/rsyslog && mkdir /var/spool/rsyslog && mkdir /etc/rsyslog.d | |
COPY rsyslog.conf /etc/rsyslog.conf | |
COPY 001-default.conf /etc/rsyslog.d/001-default.conf | |
ENTRYPOINT ["/opt/rsyslog/sbin/rsyslogd", "-n"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment