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
Branches
No related tags found
1 merge request!2Need cron to run...cron
Pipeline #1869 passed
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -7,7 +7,9 @@ RUN echo "deb http://security.debian.org/ buster/updates main" >> /etc/apt/sourc ...@@ -7,7 +7,9 @@ RUN echo "deb http://security.debian.org/ buster/updates main" >> /etc/apt/sourc
RUN apt-get update \ RUN apt-get update \
&& apt-get -y --no-install-recommends install \ && apt-get -y --no-install-recommends install \
python3 python3-pip \ cron \
python3 \
python3-pip \
&& pip3 install setuptools \ && pip3 install setuptools \
&& pip3 install s3cmd \ && pip3 install s3cmd \
&& s3cmd --version \ && s3cmd --version \
...@@ -20,5 +22,4 @@ RUN apt-get update \ ...@@ -20,5 +22,4 @@ RUN apt-get update \
COPY s3-purge.sh /usr/local/bin/s3-purge COPY s3-purge.sh /usr/local/bin/s3-purge
COPY crontab /etc/cron.d/s3-purge COPY crontab /etc/cron.d/s3-purge
RUN touch /var/log/s3-purge CMD ["cron", "-f"]
CMD ["tail", "-F", "/var/log/s3-purge"]
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