Skip to content

Instantly share code, notes, and snippets.

@mlh758
Last active July 11, 2019 16:37
Show Gist options
  • Save mlh758/89fd89bf5a2b7c2357af751e328d340a to your computer and use it in GitHub Desktop.
Save mlh758/89fd89bf5a2b7c2357af751e328d340a to your computer and use it in GitHub Desktop.
rsyslog Docker Build
FROM centos:6.8
ARG SYSLOG_VERSION=8.1905.0
RUN yum install -y wget libestr-devel libtool autoconf automake zlib-devel libcurl-devel gcc \
bison flex make
# Libfastjson
WORKDIR /home/libfastjson
RUN wget https://github.com/rsyslog/libfastjson/archive/v0.99.8.tar.gz
RUN tar xzf v0.99.8.tar.gz
WORKDIR /home/libfastjson/libfastjson-0.99.8
RUN ./autogen.sh
RUN ./configure && make && make install
# rsyslog
WORKDIR /home/rsyslog
RUN wget https://github.com/rsyslog/rsyslog/archive/v${SYSLOG_VERSION}.tar.gz
RUN tar xzf v${SYSLOG_VERSION}.tar.gz
WORKDIR /home/rsyslog/rsyslog-${SYSLOG_VERSION}
ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig:/lib64/pkgconfig
RUN autoreconf --force --verbose --install
RUN PID_FILE_PATH=/var/run/syslogdv8.pid CONF_FILE_PATH=/etc/rsyslogv8.conf ./configure --enable-imfile=yes --enable-libgcrypt=no --enable-uuid=no
RUN make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment