Update docker/fluentd/Dockerfile

This commit is contained in:
colin 2024-04-16 16:32:59 +00:00
parent ab7b1387af
commit 81e3b4743f
1 changed files with 2 additions and 17 deletions

View File

@ -1,28 +1,13 @@
# Use fluentd base image
FROM fluent/fluentd:v1.12-debian-1
# Set environment variables for GlitchTip
FROM fluent/fluentd:v1.12-debian-1
ENV SENTRY_DSN="https://1be9f9ba4adf4278a664455a98d5d744@glitch.nixc.us/6"
ENV SENTRY_LOG_LEVEL=debug
# Switch to root to install dependencies
USER root
COPY go-glitch /usr/local/bin/
# Update and install dependencies
RUN apt-get update && apt-get install -y netcat curl
# Install fluentd plugins
RUN chmod +x /usr/local/bin/go-glitch && apt-get update && apt-get install -y netcat curl
RUN fluent-gem install fluent-plugin-out-http --no-document && \
fluent-gem install fluent-plugin-record-reformer --no-document && \
fluent-gem install fluent-plugin-rewrite-tag-filter --no-document
# Copy the fluent configuration file
COPY fluent.conf /fluentd/etc/
# Set ownership and permissions
RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc
# Switch back to the fluent user
USER fluent