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
fdb91bb0
Commit
fdb91bb0
authored
Mar 27, 2019
by
BrianHolsen@outlook.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change docker file to support task mount by config map
parent
f6e04ea3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
Dockerfile
Dockerfile
+2
-4
start.sh
start.sh
+8
-0
No files found.
Dockerfile
View file @
fdb91bb0
...
...
@@ -8,8 +8,6 @@ RUN yum install -y cronie
USER
root
#add task file
ADD
task.txt /tmp/task.txt
ADD
start.sh /opt/start.sh
RUN
crontab /tmp/task.txt
CMD
[ "crond", "-x", "misc" ]
CMD
[ "/opt/start.sh" ]
start.sh
0 → 100755
View file @
fdb91bb0
#!/bin/bash
if
test
-f
/opt/task/main
;
then
crontab /opt/task/main
fi
crond
-x
misc
\ No newline at end of file
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