backup CRON not working in Dockerfile gitlab-ce
I want to enable the backup task in gitlab-ce.
I am using the offical hub.docker.com gitlab-ce image, the config can be overridden using a gitlab.rb file where it says at the backup section to visit a link where it says to enable the cron job with
0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create
Question : how to enable the cron using your image ?
I have created a Dockerfile wrapper that add supervisor and add the cron file in /etc/cron.d/backup-cron
.
[supervisord]
nodaemon=true
[program:gitlab]
command=/assets/wrapper
user=root
autorestart=true
[program:cron]
command=cron -f
user=root
autorestart=true
cron proccess and gitlab are running. there is still no backup archives in the backup directory.