-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-syslogng
More file actions
32 lines (28 loc) · 1011 Bytes
/
Copy pathDockerfile-syslogng
File metadata and controls
32 lines (28 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Dockerfile-syslogng (Ausschnitt)
FROM debian:trixie-slim
ENV DEBIAN_FRONTEND=noninteractive
# syslog-ng + SQL + logrotate + curl für Binary-Download
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
syslog-ng \
syslog-ng-mod-sql \
libdbi1 \
libdbd-mysql \
mariadb-client \
logrotate \
curl \
ca-certificates \
tzdata \
netcat-openbsd \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Supercronic (arch-agnostisch)
ARG TARGETARCH
RUN curl -fsSLo /usr/local/bin/supercronic \
"https://github.com/aptible/supercronic/releases/download/v0.2.43/supercronic-linux-${TARGETARCH}" \
&& chmod +x /usr/local/bin/supercronic
# EntryPoint: schreibt Logrotate-Config aus ENV + startet Supercronic & syslog-ng
COPY resources/syslogng-entrypoint.sh /usr/local/bin/syslogng-entrypoint.sh
RUN chmod +x /usr/local/bin/syslogng-entrypoint.sh
# WICHTIG: syslog-ng bleibt der "Hauptprozess", supercronic läuft im Hintergrund
CMD ["/usr/local/bin/syslogng-entrypoint.sh"]