-
Notifications
You must be signed in to change notification settings - Fork 4
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
add dockerimage for pyff/md #1
base: master
Are you sure you want to change the base?
Conversation
…tput location symlinkable
Conflicts: pyff_batch/INSTALL/centos.md pyff_batch/INSTALL/pyff_batch
now working with /etc/init.d stuff |
I don't like the division between a pyff and pyffd image. I'd like a solution based on a single image and both should be based on the same base-image. |
Ah, I misunderstood. I proposed a single image, and the container to be instantiated via ENV to either md or mdx. Your response was to do it with CMD. So I assumed you wanted separate images. What did I miss?
|
On 05/11/2015 09:44 AM, Rainer Hörbe wrote:
The fact that CMD doesn't require separate images! You can give CMD on
|
So no CMD in Dockerfile, but at start time: Another point: Ubuntu's Vixie cron is not configurable to get rid of sending error messages via mail, and I could not find a debian port of cronie. Would you object to base the image on centos? |
On 05/11/2015 10:41 AM, Rainer Hörbe wrote:
something like that but you shouldn't have to give full path I think ...
yeah a little bit... can you explain why you need cron in a docker image? |
Not quite sure if a script doing forever{pyff(); sleep(600)} is a robust approach. OTOH starting a new docker container every so often would not provide error tracing if there is a problem, I guess. |
FYI: The approach I proposed in the pull request is to have cron in the CMD, not as a second process in the container. |
On 05/11/2015 11:11 AM, Rainer Hörbe wrote:
Why not? If you're running pyff every X then you might aswell run pyffd |
On 05/11/2015 11:13 AM, Rainer Hörbe wrote:
I confess that I really don't like that solution. |
Having more than 1 process (-group) per container is not dockerish. If you spawn multiple independent processes the right way is to use the linux startup system. But then you are running kind of a VM again. |
On 05/11/2015 02:10 PM, Rainer Hörbe wrote:
I still don't see why running pyff inside cron is a great idea (but I'm |
Tradition and gut feeling - our ancestors have been using cron for scheduling tasks. But given the implications of the Cronie -> Centos dependency, I do not have a problem doing the looping in a script. However, I would like to run either pyff /or/ pyffd in a single container, not both. |
On 05/11/2015 02:23 PM, Rainer Hörbe wrote:
But I don't understand why you can't do a cron-job outside the container? If you need a way for pyff to do a run-sleep-run then it makes sense to
Yah sure. |
|
On 05/11/2015 03:24 PM, Rainer Hörbe wrote:
There are multiple ways to handle logs from containers that don't kill
Gimme a pull-request :-)
|
…htout changing the docker file
Conflicts: INSTALL/centos.md pyff_batch/Dockerfile
No description provided.