Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenhuasuixing-crontab
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kc-repo
wenhuasuixing-crontab
Commits
687a0c80
Commit
687a0c80
authored
Nov 21, 2017
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc
parent
3962b35f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Dockerfile
Dockerfile
+7
-3
task.txt
task.txt
+1
-1
No files found.
Dockerfile
View file @
687a0c80
...
...
@@ -5,13 +5,17 @@ MAINTAINER Brian Holsen <BrianHolsen@outlook.com>
#Install package for crontab
RUN
yum install
-y
cronie
USER
1001
USER
root
#add task file
ADD
task.txt /tmp/task.txt
RUN
crontab /tmp/task.txt
EXPOSE
80
RUN
touch /var/mail/root
CMD
[ "/usr/bin/ping", "localhost", "-i", "3" ]
RUN
chown root:mail /var/mail/root
RUN
chmod 600 /var/mail/root
CMD
[ "crond", "-x", "sch" ]
task.txt
View file @
687a0c80
*
/5 * * * * /usr/bin/curl http://wh.okayapps.com/api/siteviewcount/insert_stat
.html
*
* * * * /usr/bin/curl http://wh.okayapps.com/yulong
.html
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment