diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-27 18:33:06 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-27 18:33:06 +0100 |
commit | ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7 (patch) | |
tree | 985f9d136a981ec7cc43984c976c60e9295340d5 /tests/instrumentation/docker/cyrus | |
parent | 7744625c18aff5990a792bb13a44b60d8c4d4fc5 (diff) | |
download | aerogramme-ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7.tar.gz aerogramme-ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7.zip |
add a --dev mode
Diffstat (limited to 'tests/instrumentation/docker/cyrus')
-rw-r--r-- | tests/instrumentation/docker/cyrus/Dockerfile | 15 | ||||
-rwxr-xr-x | tests/instrumentation/docker/cyrus/entrypoint.sh | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/instrumentation/docker/cyrus/Dockerfile b/tests/instrumentation/docker/cyrus/Dockerfile new file mode 100644 index 0000000..67b4e11 --- /dev/null +++ b/tests/instrumentation/docker/cyrus/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:buster + +ARG DEBIAN_FRONTEND=noninteractive +RUN apt update && \ + apt install -y cyrus-imapd cyrus-pop3d cyrus-nntpd cyrus-caldav cyrus-admin sasl2-bin && \ + echo "admins: cyrus" >> /etc/imapd.conf && \ + touch /var/lib/cyrus/tls_sessions.db && \ + chown cyrus:mail /var/lib/cyrus/tls_sessions.db && \ + mkdir /run/cyrus && \ + chown -R cyrus:mail /run/cyrus + +COPY entrypoint.sh /usr/local/bin/entrypoint.sh + +CMD [ "/usr/local/bin/entrypoint.sh" ] + diff --git a/tests/instrumentation/docker/cyrus/entrypoint.sh b/tests/instrumentation/docker/cyrus/entrypoint.sh new file mode 100755 index 0000000..c410e9d --- /dev/null +++ b/tests/instrumentation/docker/cyrus/entrypoint.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cyrmaster -D -l 32 -C /etc/imapd.conf -M /etc/cyrus.conf & +sleep 2 + +echo cyrus | saslpasswd2 -p cyrus +echo pass | saslpasswd2 -p test + +cyradm -u cyrus -w cyrus 127.0.0.1 <<EOF +cm user.test +setaclmailbox user.test test kxtelrswip +exit +EOF + +wait |