Skip to content

Commit

Permalink
Email and rainbowstream
Browse files Browse the repository at this point in the history
  • Loading branch information
mego22 committed Aug 16, 2019
1 parent 64bb84d commit ba566af
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
29 changes: 29 additions & 0 deletions email/Dockerfile
Original file line number Diff line number Diff line change
@@ -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="[email protected]"

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"]
27 changes: 27 additions & 0 deletions email/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"

14 changes: 14 additions & 0 deletions rainbowstream/Dockerfile
Original file line number Diff line number Diff line change
@@ -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="[email protected]"

RUN pip install rainbowstream

ENTRYPOINT [ "rainbowstream" ]

0 comments on commit ba566af

Please sign in to comment.