Skip to content
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

starting ephemeral containers #33

Open
akshaykarle opened this issue Aug 5, 2015 · 4 comments
Open

starting ephemeral containers #33

akshaykarle opened this issue Aug 5, 2015 · 4 comments

Comments

@akshaykarle
Copy link

Anyway to replicate the cli lxc-start-ephemeral using the gem?

@andrenth
Copy link
Contributor

andrenth commented Aug 6, 2015

Well, lxc-start-ephemeral is a Python script, and the Ruby LXC bindings should be equivalent in functionality to Python's. I don't see why it couldn't be translated to Ruby.

@ranjib
Copy link
Contributor

ranjib commented Aug 6, 2015

Yup, currently ruby-lxc only provides Ruby API for liblxc. Akshay if you
want to take stab at it that will be awesome, else I'll try implementing it
during this weekend. We can tag this issue as enhancement.
On Aug 6, 2015 10:52 AM, "Andre Nathan" [email protected] wrote:

Well, lxc-start-ephemeral is a Python script, and the Ruby LXC bindings
should be equivalent in functionality to Python's. I don't see why it
couldn't be translated to Ruby.


Reply to this email directly or view it on GitHub
#33 (comment).

@akshaykarle
Copy link
Author

Yes, I had a look at the implementation of lxc-start-ephemeral and I'm already trying to replicate the same in ruby-lxc. Will keep you all updated about the progress and if I need any help. @ranjib I'll get in touch with you if I need anything. Thanks!

@akshaykarle
Copy link
Author

I forked and added my changes for starting ephemeral containers. I have a basic functionality working with overlayfs and before adding support for other options (tmpfs, aufs, commands, etc.) I wanted to write tests and clean up the code as right now it is simply a port of lxc-start-ephemeral script and is quite ugly.

But I'm having trouble running the tests which are failing to run when trying to require 'lxc/lxc'. You can check out this https://gist.github.com/akshaykarle/6e140b345f0a42b2e358 for more details on the failure. I also had a look at the travis yml to see if it had any manual setup but it doesn't even seem to run the tests. I've already installed lxc-dev and ruby-dev on the machine. Can someone help me getting the tests running? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants