Created
November 21, 2017 01:03
-
-
Save marcbachmann/d68ba959059728ee8e1c2d8acf03442a to your computer and use it in GitHub Desktop.
syslog-ng Dockerfile
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 multiarch/alpine:x86_64-v3.6 as syslog-ng | |
ENV VERSION=3.12.1 | |
RUN apk --no-cache add ca-certificates glib pcre eventlog libressl json-c && \ | |
apk add --no-cache --virtual .build-deps alpine-sdk wget build-base glib-static glib-dev eventlog-dev pcre-dev libressl-dev python2-dev json-c-dev && \ | |
wget -O "/tmp/syslog-ng-$VERSION.tar.gz" "https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$VERSION/syslog-ng-$VERSION.tar.gz" && \ | |
cd /tmp && \ | |
tar zxfv "syslog-ng-$VERSION.tar.gz" && \ | |
cd "syslog-ng-$VERSION" | |
WORKDIR /tmp/syslog-ng-$VERSION | |
# --enable-mixed-linking \ | |
# --sysconfdir=/etc/syslog-ng \ | |
# --localstatedir=/run \ | |
RUN ./configure --prefix=/syslog-ng \ | |
--enable-ipv6 \ | |
--enable-ssl \ | |
--disable-sql \ | |
--disable-redis \ | |
--disable-mongodb \ | |
--disable-rabbitmq \ | |
--disable-amqp \ | |
--enable-json && \ | |
make && make -j1 DESTDIR= install && \ | |
apk del --no-cache .build-deps | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment