- FROM docker:rc-git
- WORKDIR /scheduler
- COPY watch.sh .
- RUN git clone --branch dev https://1d5ea1815adcccafb9179839419558593e378589@git.luminad.com/Elsevier/Elsevier_Scheduler.git
- RUN docker login docker.luminad.com -u dockeradmin -p Welcome@123!
- # Create the log file to be able to run tail
- RUN touch /var/log/cron.log
- # Setup cron job
- RUN (crontab -l ; echo "*/1 * * * * /bin/sh /scheduler/watch.sh >> /var/log/cron.log 2>&1") | crontab -
- # Run the command on container startup
- CMD busybox crond -L /var/log/cron.log && tail -f /var/log/cron.log
|