From ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 27 Dec 2023 18:33:06 +0100 Subject: add a --dev mode --- tests/docker/maddy/Dockerfile | 16 ---------------- tests/docker/maddy/entrypoint.sh | 9 --------- 2 files changed, 25 deletions(-) delete mode 100644 tests/docker/maddy/Dockerfile delete mode 100755 tests/docker/maddy/entrypoint.sh (limited to 'tests/docker/maddy') diff --git a/tests/docker/maddy/Dockerfile b/tests/docker/maddy/Dockerfile deleted file mode 100644 index 341e398..0000000 --- a/tests/docker/maddy/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM debian:buster as builder - -WORKDIR /root -RUN apt-get update && apt-get install -y openssl && \ - openssl req -nodes -new -x509 -subj "/C=DW/ST=Sto/L=Ankh-Morpork /O=Unseen University/OU=Library/CN=Ook/emailAddress=ook@ook.ook" -keyout privkey.pem -out fullchain.pem - -FROM foxcpp/maddy:0.6.2 - -COPY --from=builder /root/privkey.pem /data/tls/privkey.pem -COPY --from=builder /root/fullchain.pem /data/tls/fullchain.pem - -ENV MADDY_DOMAIN=example.com MADDY_HOSTNAME=mx.example.com - -COPY entrypoint.sh /entrypoint.sh - -ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/tests/docker/maddy/entrypoint.sh b/tests/docker/maddy/entrypoint.sh deleted file mode 100755 index f875624..0000000 --- a/tests/docker/maddy/entrypoint.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -maddy -config /data/maddy.conf run & - -sleep 2 -maddyctl creds create --password pass test@example.com -maddyctl imap-acct create test@example.com - -wait -- cgit v1.2.3