FIX: add anacron to ensure jobs run if restarting containers a lot
authorSam <sam.saffron@gmail.com>
Mon, 25 Aug 2014 02:26:04 +0000 (12:26 +1000)
committerSam <sam.saffron@gmail.com>
Mon, 25 Aug 2014 02:26:04 +0000 (12:26 +1000)
image/base/Dockerfile
image/base/anacron [new file with mode: 0755]
image/discourse/Dockerfile

index c5d8bb61b2863935e03f9229e0499211ed765448..e8d3f79360f64f2ff99f2dec1f155fe21adfaaab 100644 (file)
@@ -2,7 +2,7 @@
 # When new LTS ships we can upgrade
 
 # NAME:     discourse_base
-# VERSION:  1.0.1
+# VERSION:  1.0.2
 
 FROM ubuntu:14.04
 
@@ -30,7 +30,7 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
                        pngcrush imagemagick \
                        postgresql-9.3 postgresql-client-9.3 \
                        postgresql-contrib-9.3 libpq-dev libreadline-dev \
-                       nginx language-pack-en sudo cron \
+                       nginx language-pack-en sudo cron anacron \
                        psmisc rsyslog vim &&\
     sed -i.bak 's/$ModLoad imklog/#$ModLoad imklog/' /etc/rsyslog.conf &&\
     dpkg-divert --local --rename --add /sbin/initctl &&\
@@ -71,4 +71,5 @@ ADD runit-1.d-cleanup-pids /etc/runit/1.d/cleanup-pids
 ADD runit-2 /etc/runit/2
 
 ADD cron /etc/service/cron/run
+ADD anacron /etc/service/anacron/run
 ADD rsyslog /etc/service/rsyslog/run
diff --git a/image/base/anacron b/image/base/anacron
new file mode 100755 (executable)
index 0000000..d924aca
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+exec 2>&1
+cd /
+exec anacron -d
index 2f2434e2cb5015bd41863582f77c39f65bcc2dff..5d13cfaef31c5b376add34f8f0b12a3afa3180d0 100644 (file)
@@ -1,5 +1,5 @@
-# Current version 1.0.1
-FROM samsaffron/discourse_base:1.0.1
+# Current version 1.0.2
+FROM samsaffron/discourse_base:1.0.2
 
 MAINTAINER Sam Saffron "https://twitter.com/samsaffron"