Commit 9ba96c95 authored by Erick Hitter's avatar Erick Hitter

Merge branch 'develop' into 'master'

Need cron to run...cron

See merge request !2
parents 7e515b98 41e5df9f
Pipeline #1875 passed with stages
in 1 minute and 27 seconds
......@@ -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 /usr/local/bin/s3-purge >> /var/log/s3-purge 2>/var/log/s3-purge-err
version: "3.7"
services:
s3_object_expirer:
image: containers.ethitter.com:443/docker/s3-object-expirer:latest
image: s3-object-expirer:latest
build:
context: ./context
restart: unless-stopped
secrets:
- source: s3_config
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment