Compare commits

...

2 Commits

Author SHA1 Message Date
Paolo Asperti 98b21f83da
fix #1
continuous-integration/drone/tag Build is failing Details
2022-05-22 21:18:41 +02:00
Paolo Asperti 3e4323b63f
expose required ENV variables 2022-05-22 21:18:11 +02:00
2 changed files with 9 additions and 0 deletions

View File

@ -8,4 +8,8 @@ COPY run.sh /
EXPOSE 514/tcp
EXPOSE 514/udp
ENV TARGET_HOST
ENV TARGET_PROTO
ENV TARGET_PORT
ENTRYPOINT ["/bin/sh", "/run.sh"]

5
run.sh
View File

@ -18,6 +18,7 @@ cat >/etc/rsyslog.conf <<EOF
\$FileCreateMode 0640
\$DirCreateMode 0755
\$Umask 0022
\$PreserveFQDN on
module(load="imudp")
input(type="imudp" port="514" )
@ -27,6 +28,10 @@ input(type="imtcp" port="514" )
module(load="mmutf8fix")
action(type="mmutf8fix" replacementChar="?" )
# If the hostname is not specified, we use fromhost
if (\$hostname == '') then set \$!hostname = \$fromhost;
EOF
if [ "${TARGET_PROTO}" = "udp" ] ; then