aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorMatt Simerson <matt@tnpi.net>2015-11-16 00:18:27 -0800
committerMatt Simerson <matt@tnpi.net>2015-11-16 00:18:27 -0800
commit5b00fe5b2d5d3d99b55c4bd62d11b02eb2f8a9d2 (patch)
treedb5ba5d2fc61848ac8f1dd1400a6defe3912967f /docker
parent500203dbb870d239773485d6a80d3c41a21ee88e (diff)
downloadrspamd-5b00fe5b2d5d3d99b55c4bd62d11b02eb2f8a9d2.tar.gz
rspamd-5b00fe5b2d5d3d99b55c4bd62d11b02eb2f8a9d2.zip
Dockerfile, for running in Docker container
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile25
-rw-r--r--docker/rspamd.conf21
-rw-r--r--docker/rspamd.list2
3 files changed, 48 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 000000000..70133a5bc
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,25 @@
+
+FROM debian:latest
+MAINTAINER Matt Simerson <matt@tnpi.net>
+
+# if Debian's ancient 0.6.10 is new enough...
+#RUN apt-get update && apt-get install -y rspamd
+
+# Instead, get latest release, from the source
+COPY rspamd.list /etc/apt/sources.list.d/rspamd.list
+RUN apt-get update \
+ && apt-get install -y curl \
+ && curl -o - http://rspamd.com/apt-stable/gpg.key | apt-key add - \
+ && apt-get install -y --force-yes \
+ rspamd \
+ && apt-get clean \
+ && rm -rf /var/lib/apt/lists/*
+
+# start up rspamd once, as it does some initialization
+RUN update-rc.d rspamd defaults && service rspamd start && sleep 30
+
+# Debian 8's rspamd.conf is for systemd, which is not running in container
+COPY rspamd.conf /etc/rspamd/rspamd.conf
+CMD ["/usr/bin/rspamd","-f", "-u", "_rspamd", "-g", "_rspamd"]
+
+EXPOSE 11333 11334
diff --git a/docker/rspamd.conf b/docker/rspamd.conf
new file mode 100644
index 000000000..46837de6a
--- /dev/null
+++ b/docker/rspamd.conf
@@ -0,0 +1,21 @@
+.include "$CONFDIR/common.conf"
+
+options {
+ .include "$CONFDIR/options.inc"
+}
+
+logging {
+ type = "console";
+ systemd = false;
+ .include "$CONFDIR/logging.inc"
+}
+
+worker {
+ bind_socket = "*:11333";
+ .include "$CONFDIR/worker-normal.inc"
+}
+
+worker {
+ bind_socket = "localhost:11334";
+ .include "$CONFDIR/worker-controller.inc"
+}
diff --git a/docker/rspamd.list b/docker/rspamd.list
new file mode 100644
index 000000000..6be6b647a
--- /dev/null
+++ b/docker/rspamd.list
@@ -0,0 +1,2 @@
+deb http://rspamd.com/apt-stable/ jessie main
+deb-src http://rspamd.com/apt-stable/ jessie main