deimos icon indicating copy to clipboard operation
deimos copied to clipboard

More than just docker?

Open hub-cap opened this issue 11 years ago • 3 comments

Howdy,

Id like to use deimos to create OpenVZ containers. Would you be open to me hacking up deimos to work with more than one containerizer? Ive looked over the code a good bit and it seems like a good bit of the code is abstracted in a way that it wouldnt be hard to accomplish said task. Whaddya think?

Also i can attempt to bribe you with beer and tapas!

hub-cap avatar Jul 24 '14 17:07 hub-cap

Hi hub-cap, we definitely welcome PRs. Feel free to fork and open a PR when you have it done.

tnachen avatar Jul 24 '14 17:07 tnachen

Right on. I just didnt want to do a bunch of work to find out yall wanted to keep this "docker centric". If thats not the case then its ON!

hub-cap avatar Jul 24 '14 18:07 hub-cap

At present, Deimos just hands all container infos to the Docker containerizer. A while back, I did a refactor, where all the proto parsing was handled by a router that looked at the image URLs (or looked up these URLs, based on the container ID) to pick a containerizer implementation.

Maybe a reasonable thing to do would be to store the image URL in the Deimos state? Then Deimos will know which sub-containerizer to use to route usage.

solidsnack avatar Jul 26 '14 17:07 solidsnack