Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docker installation to include cron job for resending of events #10

Open
ehenneken opened this issue Oct 12, 2017 · 1 comment
Open
Assignees

Comments

@ehenneken
Copy link
Collaborator

The resending of events (for previously failed emissions) through

python service/manage.py resend

needs to be executed as a cron job

@ehenneken ehenneken self-assigned this Oct 12, 2017
@ehenneken
Copy link
Collaborator Author

This needs the following addition to the Dockerfile file:

#Install Cron
RUN apt-get update
RUN apt-get -y install cron

# Add crontab file in the cron directory
ADD cron/cron.sh /etc/cron.d/webhook-cron

# Give execution rights on the cron job
RUN chmod 0644 /etc/cron.d/webhook-cron

# Create the log file to be able to run tail
RUN touch /var/log/cron.log

# Run the command on container startup
CMD cron && tail -f /var/log/cron.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant