Skip to content
Snippets Groups Projects
Commit 91c7c016 authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[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
parent 5e39a084
No related branches found
No related tags found
No related merge requests found
Pipeline #59265 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment