Skip to content
Snippets Groups Projects
Verified Commit afc5dac5 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[DBBackupRotation] Try to fix cron commands order in Dockerfile

parent 89a357f1
No related branches found
No related tags found
No related merge requests found
# Changelog
## v1.4 (17-06-2020)
* Fix crontab not scheduling because of instruction orders in Dockerfile
## v1.3 (05-04-2020)
* Use `python:3.8-alpine` as base image instead of `python:3-slim-buster` (it comes already with `cron`, so we don't have to install it)
......
......@@ -5,5 +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 -f && \
crontab /crontab.conf
crond -f -d 8 && \
......@@ -2,7 +2,7 @@ version: "3.7"
services:
db-backup-rotation:
image: registry.picasoft.net/pica-db-backup-rotation:1.3
image: registry.picasoft.net/pica-db-backup-rotation:1.4
container_name: db-backup-rotation
volumes:
- /DATA/BACKUP/:/backup/
......
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