Permalink
Browse files

WiP: some improvements on ubuntu container

  • Loading branch information...
rgerhards committed Jan 11, 2018
1 parent f6977fe commit 233db72742604fa24f5b90535bc01b6ccc2e6e6b
Showing with 23 additions and 4 deletions.
  1. +13 −2 appliance/ubuntu/Dockerfile
  2. +2 −1 appliance/ubuntu/build.sh
  3. +8 −1 appliance/ubuntu/rsyslog.conf
@@ -2,7 +2,18 @@ FROM ubuntu:16.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install rsyslog
&& apt-get -y install software-properties-common curl \
&& add-apt-repository -y ppa:adiscon/v8-stable \
&& apt-get -y update \
&& apt-get -y install libfastjson4 \
&& apt-get -y install rsyslog \
&& rm -r /etc/rsyslog.conf
ADD rsyslog.conf /etc/rsyslog.conf
#VOLUME /rsyslog-bin
RUN mkdir /rsyslog-bin \
&& cp /usr/sbin/rsyslogd /usr/lib/rsyslog/* /rsyslog-bin
CMD ["/usr/sbin/rsyslogd", "-n", "-f/etc/rsyslog.conf"]
EXPOSE 10514
WORKDIR /rsyslog-bin
CMD ["/rsyslog-bin/rsyslogd", "-n", "-f/etc/rsyslog.conf", "-M."]
@@ -1 +1,2 @@
docker build --no-cache -t rsyslog/syslog_appliance_ubuntu:16.04 .
printf "use ./build.sh --no-cache to disable cache\n"
docker build $1 -t rsyslog/syslog_appliance_ubuntu:16.04 .
@@ -1,3 +1,7 @@
module(load="omstdout")
module(load="imptcp")
input(type="imptcp" port="10514")
$ModLoad immark.so
$ModLoad imuxsock.so
@@ -10,7 +14,7 @@ $DirCreateMode 0755
$Umask 0022
# Include configuration files from directory
$IncludeConfig /etc/rsyslog.d/*
#$IncludeConfig /etc/rsyslog.d/*
# Check config syntax on startup and abort if unclean (default off)
#$AbortOnUncleanConfig on
@@ -40,3 +44,6 @@ uucp,news.crit -/var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
action(type="omstdout")
*.* :omstdout:

0 comments on commit 233db72

Please sign in to comment.