Skip to content

Commit

Permalink
fix: add rootless wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Aug 23, 2024
1 parent 98b6720 commit b3e8898
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM alpine:latest
FROM alpine:3.12

RUN addgroup -S -g 1000 sysloggroup && adduser -S -u 1000 -G sysloggroup sysloguser

RUN apk update && apk add --no-cache syslog-ng

EXPOSE 514/tcp 514/udp

COPY syslog-ng.conf /etc/

RUN mkdir -p /run && chown sysloguser:sysloggroup /run && chmod 755 /run
USER sysloguser

CMD ["/usr/sbin/syslog-ng", "-F", "-f", "/etc/syslog-ng.conf"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# kube-syslog-sidecar

Fork of [Crisu1710/kube-syslog-sidecar](https://github.com/Crisu1710/kube-syslog-sidecar) to provide rootless.

Fork of [whereisaaron/docker-syslog-ng-sidecar](https://github.com/whereisaaron/kube-syslog-sidecar) to provide automated builds and minor tweaks.

Dockerfile for syslog-ng to run in a sidecar container logging to stdout. The purpose of this
Expand Down

0 comments on commit b3e8898

Please sign in to comment.