GHP publish
This commit is contained in:
4
pwgen/Dockerfile
Normal file
4
pwgen/Dockerfile
Normal 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
13
pwgen/Makefile
Normal 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
8
pwgen/dkim-key.sh
Normal 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"
|
Reference in New Issue
Block a user