Skip to content

Instantly share code, notes, and snippets.

@ereyes01
Last active August 29, 2015 14:04
Show Gist options
  • Save ereyes01/6121cd5ca0ac8d78e0fe to your computer and use it in GitHub Desktop.
Save ereyes01/6121cd5ca0ac8d78e0fe to your computer and use it in GitHub Desktop.
Containable Python Binding
box.start()
box.add_user(username="admin", home_dir="/home/admin",
shell="/bin/bash")
box.install_packages(['python-dev',
'python-pip',
'redis-server',
'openssh-server',
'libffi-dev'])
box.copy_file(config_file, '/etc/my_app/app.conf')
box.copy_file(data_file, '/opt/my_app/data_file')
box.start_service(name='my_app', user='admin')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment