From ba566af5e455a9980654322c979a925d9bc275bc Mon Sep 17 00:00:00 2001 From: David James Date: Fri, 16 Aug 2019 16:09:41 -0400 Subject: [PATCH] Email and rainbowstream --- email/Dockerfile | 29 +++++++++++++++++++++++++++++ email/entrypoint.sh | 27 +++++++++++++++++++++++++++ rainbowstream/Dockerfile | 14 ++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 email/Dockerfile create mode 100755 email/entrypoint.sh create mode 100644 rainbowstream/Dockerfile diff --git a/email/Dockerfile b/email/Dockerfile new file mode 100644 index 0000000..82da266 --- /dev/null +++ b/email/Dockerfile @@ -0,0 +1,29 @@ +# docker run -ti --rm \ +# --name mail \ +# -v ~/.mbsync:/home/mail/.mbsync \ +# -v ~/.msmtprc:/home/mail/.msmtprc \ +# -v ~/.neomuttrc:/home/mail/.neomuttrc \ +# -v ~/Maildir:/home/mail/Maildir +# mego22/mail + + +FROM debian:buster + +LABEL maintainer="david@mego22.net" + +ARG DEBIAN_FRONTEND=noninteractive +RUN apt-get update -q && \ + apt-get install -q -y ca-certificates \ + neomutt \ + isync \ + mu4e \ + lynx \ + msmtp \ + cron \ + vim && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +ADD entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/email/entrypoint.sh b/email/entrypoint.sh new file mode 100755 index 0000000..b62a481 --- /dev/null +++ b/email/entrypoint.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +set -eo pipefail + +# start cron +cron + +runthis() +{ + + exec "$@" +} + + +main () +{ + + case "$1" in + mail) + shift; neomutt;; + *) + runthis "$@";; + esac +} + +main "$@" + diff --git a/rainbowstream/Dockerfile b/rainbowstream/Dockerfile new file mode 100644 index 0000000..93e97c6 --- /dev/null +++ b/rainbowstream/Dockerfile @@ -0,0 +1,14 @@ +#docker run -it --rm \ +# -v /etc/localtime:/etc/localtime:ro \ +# -v $HOME/.rainbow_oauth:/root/.rainbow_oauth \ +# -v $HOME/.rainbow_config.json:/root/.rainbow_config.json \ +# --name rainbowstream \ +# mego22/rainbowstream + +FROM python:3 + +LABEL maintainer="david@mego22.net" + +RUN pip install rainbowstream + +ENTRYPOINT [ "rainbowstream" ]