ruby-lxc icon indicating copy to clipboard operation
ruby-lxc copied to clipboard

basic lxc-start-ephemeral support on overlayfs

Open akshaykarle opened this issue 8 years ago • 4 comments

TODO:

  • support aufs
  • support tmpfs
  • documentation
  • tests

akshaykarle avatar Nov 09 '15 16:11 akshaykarle

This in response to #33

akshaykarle avatar Nov 09 '15 16:11 akshaykarle

@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 avatar Nov 09 '15 19:11 ranjib

@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?

akshaykarle avatar Nov 11 '15 03:11 akshaykarle

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)?

andrenth avatar Nov 13 '15 11:11 andrenth