Skip to content

Instantly share code, notes, and snippets.

@gronke
Created October 8, 2018 06:55
Show Gist options
  • Save gronke/e03a8b692e1c6158e807074aa63b9f1f to your computer and use it in GitHub Desktop.
Save gronke/e03a8b692e1c6158e807074aa63b9f1f to your computer and use it in GitHub Desktop.
libiocage from Ruby with pycall
pkg install -y ruby24-gems
gem install pycall
export PYTHON=/usr/local/bin/python3
ruby ./iocage-from-ruby.rb
require 'pycall/import'
include PyCall::Import
pyimport :iocage
jail = iocage.Jail("test")
jail.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment