From 0fb1d6025483ef10fc454269049ed509f858201c Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 16 Apr 2024 13:52:14 +0000 Subject: [PATCH] Update docker/fluentd/Dockerfile --- docker/fluentd/Dockerfile | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/docker/fluentd/Dockerfile b/docker/fluentd/Dockerfile index 73cc988..220b79c 100644 --- a/docker/fluentd/Dockerfile +++ b/docker/fluentd/Dockerfile @@ -1,22 +1,12 @@ -# Start from the Fluentd official image based on Debian + FROM fluent/fluentd:v1.12-debian-1 - -# Use root for the installation of additional plugins +ENV SENTRY_DSN="https://b4a0501ad2264d5b84054f8222628adc@glitch.nixc.us/5" USER root - -# Update and install netcat RUN apt-get update && apt-get install -y netcat curl - -# Install necessary plugins +RUN curl -sL https://sentry.io/get-cli/ | bash 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 your custom Fluentd configuration file COPY fluent.conf /fluentd/etc/ - -# Change the directory permissions as needed RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc - -# Switch back to the fluent user USER fluent