소스 검색

cron requires /var/spool/cron to be writable

This is where it stores user cronjobs
Girish Ramakrishnan 8 년 전
부모
커밋
de65de9e5b
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      Dockerfile
  2. 1 1
      start.sh

+ 3 - 0
Dockerfile

@@ -72,6 +72,9 @@ ADD proftpd.conf /app/code/proftpd.conf.template
 
 RUN rm -rf /var/log/proftpd && ln -s /run/proftpd /var/log/proftpd
 
+# configure cron
+RUN rm -rf /var/spool/cron && ln -s /run/cron /var/spool/cron
+
 # configure supervisor
 ADD supervisor/ /etc/supervisor/conf.d/
 RUN sed -e 's,^logfile=.*$,logfile=/run/supervisord.log,' -i /etc/supervisor/supervisord.conf

+ 1 - 1
start.sh

@@ -2,7 +2,7 @@
 
 set -eu
 
-mkdir -p /app/data/public /run/apache2 /run/proftpd /run/app
+mkdir -p /app/data/public /run/apache2 /run/proftpd /run/app /run/cron
 
 # check if any index file exists
 for f in /app/data/public/index.*; do