Update docker/fluentd/Dockerfile
This commit is contained in:
parent
326ca3af36
commit
e4c5339dbc
|
@ -1,12 +1,32 @@
|
||||||
|
# Use fluentd base image
|
||||||
FROM fluent/fluentd:v1.12-debian-1
|
FROM fluent/fluentd:v1.12-debian-1
|
||||||
|
|
||||||
|
# Set environment variables for GlitchTip
|
||||||
ENV SENTRY_DSN="https://b4a0501ad2264d5b84054f8222628adc@glitch.nixc.us/5"
|
ENV SENTRY_DSN="https://b4a0501ad2264d5b84054f8222628adc@glitch.nixc.us/5"
|
||||||
ENV SENTRY_LOG_LEVEL=debug
|
ENV SENTRY_LOG_LEVEL=debug
|
||||||
|
|
||||||
|
# Switch to root to install dependencies
|
||||||
USER root
|
USER root
|
||||||
RUN apt-get update && apt-get install -y netcat curl
|
|
||||||
|
# Update and install dependencies
|
||||||
|
RUN apt-get update && apt-get install -y netcat curl python3-pip
|
||||||
|
|
||||||
|
# Install GlitchTip CLI using pip
|
||||||
|
RUN pip3 install glitchtip-cli
|
||||||
|
|
||||||
|
# Install Sentry CLI using the official installation script
|
||||||
RUN curl -sL https://sentry.io/get-cli/ | bash
|
RUN curl -sL https://sentry.io/get-cli/ | bash
|
||||||
|
|
||||||
|
# Install fluentd plugins
|
||||||
RUN fluent-gem install fluent-plugin-out-http --no-document && \
|
RUN fluent-gem install fluent-plugin-out-http --no-document && \
|
||||||
fluent-gem install fluent-plugin-record-reformer --no-document && \
|
fluent-gem install fluent-plugin-record-reformer --no-document && \
|
||||||
fluent-gem install fluent-plugin-rewrite-tag-filter --no-document
|
fluent-gem install fluent-plugin-rewrite-tag-filter --no-document
|
||||||
|
|
||||||
|
# Copy the fluent configuration file
|
||||||
COPY fluent.conf /fluentd/etc/
|
COPY fluent.conf /fluentd/etc/
|
||||||
|
|
||||||
|
# Set ownership and permissions
|
||||||
RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc
|
RUN chown -R fluent:fluent /fluentd && chmod -R 700 /fluentd/etc
|
||||||
|
|
||||||
|
# Switch back to the fluent user
|
||||||
USER fluent
|
USER fluent
|
||||||
|
|
Loading…
Reference in New Issue