GHP publish

This commit is contained in:
ace
2021-01-09 21:06:20 +03:00
commit 380dbf855f
68 changed files with 10903 additions and 0 deletions

4
pwgen/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM alpine:3.12
RUN apk add --no-cache openldap-passwd-pbkdf2 apache2-utils pwgen opendkim-utils coreutils
COPY dkim-key.sh /dkim-key.sh

13
pwgen/Makefile Normal file
View File

@ -0,0 +1,13 @@
VERSION=latest
IMAGE=pwgen
REGISTRY=registry.0xace.cc
.PHONY: build push all
build:
docker build -t $(REGISTRY)/$(IMAGE):$(VERSION) .
push:
docker push $(REGISTRY)/$(IMAGE):$(VERSION)
all: build push

8
pwgen/dkim-key.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/bash
/usr/bin/opendkim-genkey -d $1 2>/dev/null
TXT=$(cat default.txt |base64 -w 0)
PRIVATE=$(cat default.private |base64 -w 0)
echo "dkim:
- name: default
default.txt: $TXT
default.private: $PRIVATE"