Skip to content

Commit c25245a

Browse files
committed
Inital commit
0 parents  commit c25245a

File tree

5 files changed

+98
-0
lines changed

5 files changed

+98
-0
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "docker"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/docker.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "0 0 * * *"
10+
11+
jobs:
12+
docker:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v2
19+
- name: Login to GitHub Container Registry
20+
uses: docker/login-action@v2
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Build and push
26+
uses: docker/build-push-action@v3
27+
with:
28+
context: .
29+
push: ${{ !github.event_name != 'pull_request' }}
30+
tags: ghcr.io/${{ github.repository }}:latest
31+
cache-from: type=gha
32+
cache-to: type=gha,mode=max

Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM debian:bullseye-slim
2+
3+
RUN set -ex; \
4+
apt-get update; \
5+
apt-get install -y \
6+
libclass-dbi-mysql-perl \
7+
libfile-mimeinfo-perl \
8+
libio-socket-inet6-perl \
9+
libio-socket-ip-perl \
10+
libmail-imapclient-perl \
11+
libmail-mbox-messageparser-perl \
12+
libmime-tools-perl \
13+
libperlio-gzip-perl \
14+
libxml-simple-perl \
15+
unzip; \
16+
rm -rf /var/lib/apt/lists/*
17+
18+
ENV DMARCPARSER_VERSION 2af80e6a0ccc57bfe4e6bc8ae11c15b435c3d919
19+
ENV DMARCPARSER_SHA256 27401ba15b1f97a962b9f8bf0fb0943cf0d005784e5fab850ea604500b751cd5
20+
21+
RUN set -ex; \
22+
apt-get update; \
23+
apt-get install -y curl; \
24+
cd /usr/local/bin; \
25+
curl -o dmarcts-report-parser.pl -fSL https://github.com/techsneeze/dmarcts-report-parser/raw/${DMARCPARSER_VERSION}/dmarcts-report-parser.pl; \
26+
echo "$DMARCPARSER_SHA256 dmarcts-report-parser.pl" | sha256sum -c -; \
27+
chmod +x dmarcts-report-parser.pl; \
28+
rm -rf /var/lib/apt/lists/*
29+
30+
COPY run.sh /
31+
32+
CMD ["/run.sh"]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Patrick Gansterer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

run.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
while :
4+
do
5+
dmarcts-report-parser.pl -i --info
6+
sleep 1h
7+
done

0 commit comments

Comments
 (0)