Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6f3bb02c
authored
Jul 22, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fabfile: add pip support
parent
23999700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
circle/fabfile.py
+10
-0
No files found.
circle/fabfile.py
View file @
6f3bb02c
...
@@ -22,6 +22,12 @@ def update_all():
...
@@ -22,6 +22,12 @@ def update_all():
execute
(
update_portal
)
execute
(
update_portal
)
def
pip
(
env
,
req
):
"Install pip requirements"
with
_workon
(
env
):
run
(
"pip install -r
%
s"
%
req
)
@roles
(
'portal'
)
@roles
(
'portal'
)
def
migrate
():
def
migrate
():
"Run db migrations"
"Run db migrations"
...
@@ -88,6 +94,7 @@ def update_portal(test=False):
...
@@ -88,6 +94,7 @@ def update_portal(test=False):
"Update and restart portal+manager"
"Update and restart portal+manager"
with
_stopped
(
"portal"
,
"mancelery"
):
with
_stopped
(
"portal"
,
"mancelery"
):
pull
()
pull
()
pip
(
"circle"
,
"~/circle/requirements.txt"
)
migrate
()
migrate
()
compile_things
()
compile_things
()
if
test
:
if
test
:
...
@@ -106,7 +113,9 @@ def update_node():
...
@@ -106,7 +113,9 @@ def update_node():
"Update and restart nodes"
"Update and restart nodes"
with
_stopped
(
"node"
,
"agent"
):
with
_stopped
(
"node"
,
"agent"
):
pull
(
"~/vmdriver"
)
pull
(
"~/vmdriver"
)
pip
(
"vmdriver"
,
"~/vmdriver/requirements/production.txt"
)
pull
(
"~/agentdriver"
)
pull
(
"~/agentdriver"
)
pip
(
"agentdriver"
,
"~/agentdriver/requirements.txt"
)
@parallel
@parallel
...
@@ -115,6 +124,7 @@ def update_storage():
...
@@ -115,6 +124,7 @@ def update_storage():
"Update and restart storagedriver"
"Update and restart storagedriver"
with
_stopped
(
"storage"
):
with
_stopped
(
"storage"
):
pull
(
"~/storagedriver"
)
pull
(
"~/storagedriver"
)
pip
(
"storage"
,
"~/storagedriver/requirements/production.txt"
)
@parallel
@parallel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment