Browse Source

rsyslog docker image

pull/1/head
Nicolas Massé 8 years ago
parent
commit
5cc3ebfbe9
  1. 16
      rsyslog/Dockerfile
  2. 17
      rsyslog/README.md
  3. 9
      rsyslog/rsyslog.conf

16
rsyslog/Dockerfile

@ -0,0 +1,16 @@
FROM rhel7
ADD rsyslog.conf /etc/rsyslog.conf
RUN yum update -y \
&& yum -y install rsyslog \
&& yum clean all \
&& rm -rf /var/cache/yum \
&& chmod -R ugo+rw,+X /etc/rsyslog.conf /var/log/ /var/run/
VOLUME /var/log/
WORKDIR /var/log/
EXPOSE 1601
ENTRYPOINT [ "/usr/sbin/rsyslogd" ]
CMD [ "-4", "-n", "-f", "/etc/rsyslog.conf", "-i", "/var/run/rsyslog.pid" ]

17
rsyslog/README.md

@ -0,0 +1,17 @@
# rsyslog
## Description
## Build in OpenShift
```
oc new-build https://github.com/nmasse-itix/OpenShift-Docker-Images.git --context-dir rsyslog --name rsyslog --to rsyslog
```
## Deploy in OpenShift
```
oc new-app https://github.com/nmasse-itix/OpenShift-Docker-Images.git --context-dir rsyslog --name rsyslog
oc volume dc openldap --add --overwrite --name=rsyslog-volume-1 -t pvc --claim-size=512Mi --claim-name=rsyslog-data
```

9
rsyslog/rsyslog.conf

@ -0,0 +1,9 @@
module(load="imtcp")
ruleset(name="remote1"){
action(type="omfile" file="/var/log/messages")
}
input(type="imtcp" port="1601" ruleset="remote1" RateLimit.Interval="0" RateLimit.Burst="1000000000")
Loading…
Cancel
Save