Created
June 13, 2018 09:59
-
-
Save liuchang0812/5c2277ff1b9b77035c0afa91668bfc8d to your computer and use it in GitHub Desktop.
testcron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* * * * * echo "hello world" >> /var/log/cron.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER [email protected] | |
ADD crontab /etc/cron.d/hello-cron | |
RUN chmod 0644 /etc/cron.d/hello-cron | |
RUN touch /var/log/cron.log | |
RUN /usr/bin/crontab /etc/cron.d/hello-cron | |
CMD tail -f /var/log/cron.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment