From 91c7c016f57179f5800c42de77ff43d085312123 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= <amaldona@etu.utc.fr>
Date: Mon, 6 Apr 2020 02:04:57 +0200
Subject: [PATCH] [pica-db-backup-rotation] Update Dockerfile

* Try to prevent the container from restarting all the time by adding
`-f` to `crond`
* `touch /crontab.conf` not needed
* `cat /crontab.conf` not needed because `start-rotation.py` already
prints the config
---
 pica-db-backup-rotation/Dockerfile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pica-db-backup-rotation/Dockerfile b/pica-db-backup-rotation/Dockerfile
index ba0301f6..01f3c682 100644
--- a/pica-db-backup-rotation/Dockerfile
+++ b/pica-db-backup-rotation/Dockerfile
@@ -5,7 +5,5 @@ RUN pip install --no-cache-dir "rotate-backups<9" "python-crontab<2.5"
 COPY start_rotation.py /start_rotation.py
 
 CMD /start_rotation.py && \
-    crond && \
-    touch /crontab.conf && \
-    crontab /crontab.conf && \
-    cat /crontab.conf
+    crond -f && \
+    crontab /crontab.conf
-- 
GitLab