ubuntu: add rsyslog package for logging

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-11 01:40:13 -05:00
parent 42a40149af
commit 8ecdba987b
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 7 additions and 1 deletions

View File

@ -6,12 +6,16 @@ ENV DEBUG=${DEBUG}
WORKDIR /root
RUN apt-get update
RUN apt-get install -y nfs-kernel-server krb5-kdc krb5-admin-server nfs-common bash
RUN apt-get install -y nfs-kernel-server krb5-kdc krb5-admin-server nfs-common bash rsyslog
RUN if [ -n "${DEBUG}" ]; then \
apt-get install iproute2 iputils-ping net-tools; \
fi
RUN cat > /etc/rsyslog.conf <<EOF
*.* /var/log/everything.log
EOF
COPY ./common.sh .
COPY ./entrypoint-ubuntu.sh .
COPY ./init.sh .

View File

@ -4,6 +4,8 @@ ENTRY="./entrypoint.sh"
if [ "$1" == "ubuntu" ]; then
ENTRY="./entrypoint-ubuntu.sh"
service --status-all
service rsyslog start
fi
exec bash -xc $ENTRY 2>&1 | tee /root/stuff.log