ipabusedb-docker-reporter: rename from ipabusedb-docker-ssh, add Dockerfile with runit service

Build on git.eeqj.de/sneak/baseimage:2026-11-05 with the docker CLI
copied from docker:cli. A runit service sleeps INTERVAL seconds
(default 1200), then runs the reporter with --since INTERVAL --submit;
DOCKER_CONTAINER_NAME and IPABUSEDB_API_KEY come from the container
environment. Add .dockerignore, make image, and README section; fix the
binary name in .gitignore.
This commit is contained in:
sneak committed 2026-11-06 20:18:26 -08:00
1 parent b8c36689ae
commit 1aa7d84401
16 files changed
+135 -11

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
BIN="ipabusedb-docker-reporter"
DH="root@fsn1app1"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
rsync -avP --delete ./ "$DH":/tmp/reporterdeploy/
#ssh $DH "cd /tmp/reporterdeploy && go get -v && go build -o ./${BIN} . && ls -tla"
ssh $DH "cd /tmp/reporterdeploy && go get -v && go build . && ls -tla && mv ./${BIN} /usr/local/sbin"