Public Repository

Last pushed: a year ago
Short Description
A docker container which contains the xaps-daemon from https://github.com/st3fan/dovecot-xaps-daemon
Full Description

Info

Note as I did not put that much effort into this container so there is a lot of space for improvements. Like switch to a smaller Base Image e.g. alpine, change the start parameters to variables etc...

This is a docker container for the apple push daemon to enable apple push notifications for dovecot.
To get this daemon to work you need a valid push certificate which you can obtain by purchasing the OS X Server.
Afterwards you need to extract the key from your keychain. For a detailed description please check the documentation on https://github.com/st3fan/dovecot-xaps-daemon#exporting-and-converting-the-certificate

To hook it up with dovecot you need the dovecot-xaps-plugin aswell.

Dockerfile

FROM debian:jessie

ENV Version 0.0.1

VOLUME ["/opt/xapsd", "/var/run/xapsd"]
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install git wget
RUN wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz
ENV PATH $PATH:/usr/local/go/bin
ENV GOPATH /usr/share/go
ENV PATH $PATH:$GOPATH/bin
RUN go get github.com/constabulary/gb/...
RUN git clone https://github.com/st3fan/dovecot-xaps-daemon.git && cd dovecot-xaps-daemon && gb build all
CMD /dovecot-xaps-daemon/bin/xapsd -key=/opt/xapsd/key.pem -certificate=/opt/xapsd/certificate.pem -database=/opt/xapsd/xapsd.json -socket=/var/run/xapsd/dovecot-xaps-daemon.sock
Docker Pull Command
Owner
netzding

Comments (0)