change docker file to support task mount by config map

parent f6e04ea3
......@@ -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" ]
#!/bin/bash
if test -f /opt/task/main; then
crontab /opt/task/main
fi
crond -x misc
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment