From f0439007bc24094c3bc0c1c62df8cd1384bd0d77 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Wed, 1 Jan 2020 08:26:50 -0800 Subject: [PATCH] Need cron to run...cron --- context/Dockerfile | 7 ++++--- context/crontab | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/context/Dockerfile b/context/Dockerfile index 32ca6ac..73d71ce 100644 --- a/context/Dockerfile +++ b/context/Dockerfile @@ -7,7 +7,9 @@ RUN echo "deb http://security.debian.org/ buster/updates main" >> /etc/apt/sourc RUN apt-get update \ && apt-get -y --no-install-recommends install \ - python3 python3-pip \ + cron \ + python3 \ + python3-pip \ && pip3 install setuptools \ && pip3 install s3cmd \ && s3cmd --version \ @@ -20,5 +22,4 @@ RUN apt-get update \ COPY s3-purge.sh /usr/local/bin/s3-purge COPY crontab /etc/cron.d/s3-purge -RUN touch /var/log/s3-purge -CMD ["tail", "-F", "/var/log/s3-purge"] +CMD ["cron", "-f"] diff --git a/context/crontab b/context/crontab index 21b4156..06a984d 100644 --- a/context/crontab +++ b/context/crontab @@ -1 +1 @@ -20 1 * * * root s3-purge >> /var/log/s3-purge 2>/dev/null +20 1 * * * root s3-purge >> /var/log/s3-purge 2>/var/log/s3-purge-err -- GitLab