extra config file
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Paolo Asperti 2023-07-07 17:48:46 +02:00
parent e6977298f4
commit 5069b7fc29
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 12 additions and 0 deletions

View File

@ -13,4 +13,6 @@ ENV TARGET_PROTO="tcp"
ENV TARGET_PORT="514"
ENV DEBUG="0"
VOLUME [ "/extraconfig" ]
ENTRYPOINT ["/bin/sh", "/run.sh"]

View File

@ -21,6 +21,10 @@ Variable | Default | Description
TARGET_PORT | 514 | target server syslog port
DEBUG | 0 | if != 0, every received log line is shown on stdout
## extra config files
You can add some custom config file, by mounting the `/extraconfig` directory. Any file ending in `.conf` placed here will be added to rsyslog configuration.
## run
```bash

6
run.sh
View File

@ -54,4 +54,10 @@ action(type="omfwd" protocol="tcp" target="${TARGET_HOST}" port="${TARGET_PORT}"
EOF
fi
# extra config
mkdir -p /extraconfig
cat >>/etc/rsyslog.conf <<EOF
$IncludeConfig /etc/rsyslog.d/*.conf
EOF
/usr/sbin/rsyslogd -nf /etc/rsyslog.conf