Browse Source

Run cron directly from supervisord

master
Carlos Mogas da Silva 3 years ago
parent
commit
fbdf51a6f9
  1. 3
      Dockerfile
  2. 2
      cron.sh
  3. 2
      supervisord.conf

3
Dockerfile

@ -18,12 +18,11 @@ RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/so
haraka \
&& chown -R haraka:haraka /haraka
COPY cron.sh /cron.sh
COPY haraka.sh /haraka.sh
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY certbot-renew.sh /etc/cron.daily/certbot-renew.sh
RUN chmod +x /cron.sh /haraka.sh /etc/cron.daily/certbot-renew.sh
RUN chmod +x /haraka.sh /etc/cron.daily/certbot-renew.sh
# Install and Haraka and it's plugins
USER node

2
cron.sh

@ -1,2 +0,0 @@
source /etc/default/cron
/usr/sbin/cron -n

2
supervisord.conf

@ -19,4 +19,4 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/cron.sh
command=/usr/sbin/cron -n
Loading…
Cancel
Save