Last active
August 29, 2015 14:04
-
-
Save ereyes01/6121cd5ca0ac8d78e0fe to your computer and use it in GitHub Desktop.
Containable Python Binding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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