ruby-lxc
ruby-lxc copied to clipboard
basic lxc-start-ephemeral support on overlayfs
TODO:
- support aufs
- support tmpfs
- documentation
- tests
This in response to #33
@akshaykarle dude, if we can have a ruby-lxc API for this, it would be awesome :-) . can you provide an example in the readme. we should have specs, if we extract the methods, it will be easier to test it independently. let me know if you want help with writing the specs. i can help with that as well
:+1: @andrenth i can use this too :-)
@ranjib I had planned the documentation/example and code cleanup once I had a decent coverage in the specs. Right now this is mostly a port of the lxc-start-ephemeral
CLI from https://github.com/lxc/lxc.
I had some trouble getting them running. For now, I'm making the changes you suggested. Will push them out soon after testing them manually. I got around some problems running specs but noticed that you need to run the specs as root :(
Also, can you clarify by what you mean by a ruby-lxc API for start_ephemeral? Maybe an example? Is there an API for any other operations?
Sorry for taking so long to reply guys. Honestly I'm a bit torn on this one, because while I see the usefulness, it was never my goal to reimplement higher level LXC features/commands in ruby-lxc, but simply to provide bindings to the library.
As a compromise, what do you guys think of including this but not requiring it by default (i.e., the user would have to require 'lxc/start_ephemeral'
by himself in order to use it)?