Skip to content
Snippets Groups Projects
Commit f0439007 authored by Erick Hitter's avatar Erick Hitter
Browse files

Need cron to run...cron

parent d507edda
No related branches found
No related tags found
1 merge request!2Need cron to run...cron
Pipeline #1869 passed
......@@ -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"]
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment