Comments (4)
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.
from ruby-lxc.
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).
from ruby-lxc.
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!
from ruby-lxc.
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!
from ruby-lxc.
Related Issues (20)
- c.config_item('lxc.mount.entry') sometimes returns a string instead of array HOT 2
- clone using overlayfs snapshot HOT 3
- missing liblxc when installing HOT 3
- how to run lxc commands HOT 2
- #attach, #run_command and stdout HOT 6
- c.stop hangs HOT 5
- zombie process after (attach and run_command) HOT 3
- how to set release and architecture during creation of container HOT 2
- Capturing the exit status of commands inside the container HOT 2
- clone segfaults with the latest lxc release HOT 2
- LXC.run_command path issue HOT 2
- Error installing gem with Rubinius HOT 11
- destroying containers from code doesn't sync with lxc-ls HOT 5
- undefined symbol: lxc_strerror HOT 4
- save_config doesn't save cgroup related settings
- gem fails to install on ubuntu 18.04 HOT 8
- Cannot fork after attaching in ruby >= 2.6 HOT 2
- ruby-lxc broken by liblxc 4.0.4: undefined symbol: lxc_config_parse_arch HOT 2
- Segmentation fault when creating a container
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-lxc.