Created
July 23, 2015 21:14
-
-
Save danlamanna/e71559ac2a1c72a04160 to your computer and use it in GitHub Desktop.
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
| from fabric.api import sudo, run | |
| from fabric.contrib.files import exists | |
| from fabric.decorators import task | |
| crane_file = 'https://raw.githubusercontent.com/Kitware/SMQTK/tempus/python/smqtk/web/geospace/deploy/crane.yaml' | |
| def install_crane(): | |
| if not exists('crane'): | |
| run('bash -c "`curl -sL https://raw.githubusercontent.com/michaelsauter/crane/master/download.sh`"') | |
| @task | |
| def deploy(): | |
| install_crane() | |
| run('wget -O crane.yaml {}'.format(crane_file)) | |
| sudo('./crane lift') | |
| sudo('docker ps') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment