public-inbox.org install with search enabled
982
Serve HTTP archives with something like:
mkdir srv
git clone --bare git://example.com/notmuch-archives.git srv/notmuch
echo 'Notmuch -- Just an email system' >srv/notmuch.git/description
git config -f srv/notmuch.git/config publicinbox.http http://example.com
git config -f srv/notmuch.git/config publicinbox.email [email protected]
docker run --name notmuch-archives -d -p 80:8080 -v ${PWD}/srv/:/srv/ wking/public-inbox
You can put as many bare ssoma repositories under ./srv as you like.
Dockerfile used to generate the image:
FROM debian:8.5
MAINTAINER W. Trevor King <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get -y install git libtimedate-perl libemail-mime-perl libemail-mime-contenttype-perl make perl
RUN apt-get -y install libplack-perl libmail-thread-perl liburi-perl libdanga-socket-perl libnet-server-perl
RUN apt-get -y install libsearch-xapian-perl libdbi-perl libdbd-sqlite3-perl
RUN git clone git://80x24.org/public-inbox ~/public-inbox
RUN cd ~/public-inbox && perl Makefile.PL && make && make install
CMD (cd /srv; for NAME in *; do CONF="/srv/${NAME}/config"; public-inbox-init "${NAME}" "/srv/${NAME}" $(git config -f "${CONF}" publicinbox.http) $(git config -f "${CONF}" publicinbox.email); done) && public-inbox-index /srv/* && public-inbox-httpd
EXPOSE 8080
Content type
Image
Digest
Size
99.9 MB
Last updated
about 10 years ago
docker pull wking/public-inbox