Skip to content

Commit

Permalink
fixes from surfen
Browse files Browse the repository at this point in the history
  • Loading branch information
Till Wiblishauser committed Dec 10, 2024
1 parent e4421fc commit eb3ecb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion grafana/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM grafana/grafana:8.5.4
FROM grafana/grafana:latest

ADD --chown=grafana:root https://raw.githubusercontent.com/domainaware/parsedmarc/master/grafana/Grafana-DMARC_Reports.json /var/lib/grafana/dashboards/
RUN chmod 644 /etc/grafana/provisioning

COPY grafana-provisioning/ /etc/grafana/provisioning/

RUN sed -i 's/fixed_interval/interval/g' /var/lib/grafana/dashboards/Grafana-DMARC_Reports.json
6 changes: 3 additions & 3 deletions grafana/grafana-provisioning/datasources/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ datasources:
database: '[dmarc_aggregate-]YYYY-MM-DD'
isDefault: true
jsonData:
esVersion: 7.17.5
esVersion: 80
timeField: 'date_range'
interval: 'Daily'
version: 1
Expand All @@ -22,8 +22,8 @@ datasources:
database: '[dmarc_forensic-]YYYY-MM-DD'
isDefault: false
jsonData:
esVersion: 7.17.5
esVersion: 80
timeField: 'arrival_date'
interval: 'Daily'
version: 1
editable: false
editable: false
4 changes: 2 additions & 2 deletions parsedmarc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.9-alpine3.16
FROM python:3.11-alpine

RUN apk add --update --no-cache libxml2-dev libxslt-dev
RUN apk add --update --no-cache --virtual .build_deps build-base libffi-dev \
&& pip install parsedmarc \
&& apk del .build_deps

COPY parsedmarc.ini /
#COPY GeoLite2-Country.mmdb /usr/share/GeoIP/GeoLite2-Country.mmdb
#COPY GeoLite2-Country.mmdb /usr/share/GeoIP/GeoLite2-Country.mmdb

0 comments on commit eb3ecb6

Please sign in to comment.