Merge branch 'flamenco'
This commit is contained in:
@@ -22,6 +22,7 @@ cd /data/git
|
|||||||
git clone git://git.blender.org/pillar-python-sdk.git
|
git clone git://git.blender.org/pillar-python-sdk.git
|
||||||
git clone git://git.blender.org/pillar-server.git pillar
|
git clone git://git.blender.org/pillar-server.git pillar
|
||||||
git clone git://git.blender.org/attract.git
|
git clone git://git.blender.org/attract.git
|
||||||
|
git clone git://git.blender.org/flamenco.git
|
||||||
git clone git://git.blender.org/blender-cloud.git
|
git clone git://git.blender.org/blender-cloud.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3
cloud.py
3
cloud.py
@@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
from pillar import PillarServer
|
from pillar import PillarServer
|
||||||
from attract import AttractExtension
|
from attract import AttractExtension
|
||||||
|
from flamenco import FlamencoExtension
|
||||||
|
|
||||||
attract = AttractExtension()
|
attract = AttractExtension()
|
||||||
|
flamenco = FlamencoExtension()
|
||||||
|
|
||||||
app = PillarServer('.')
|
app = PillarServer('.')
|
||||||
app.load_extension(attract, '/attract')
|
app.load_extension(attract, '/attract')
|
||||||
|
app.load_extension(flamenco, '/flamenco')
|
||||||
app.process_extensions()
|
app.process_extensions()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
48
deploy.sh
48
deploy.sh
@@ -31,39 +31,37 @@ if [ -n "$(git log origin/production..production --oneline)" ]; then
|
|||||||
read dummy
|
read dummy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find Pillar
|
function find_module()
|
||||||
PILLAR_DIR=$(python <<EOT
|
{
|
||||||
|
MODULE_NAME=$1
|
||||||
|
MODULE_DIR=$(python <<EOT
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import os.path
|
import os.path
|
||||||
try:
|
try:
|
||||||
import pillar
|
import ${MODULE_NAME}
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise SystemExit('Pillar not found on Python path. Are you in the correct venv?')
|
raise SystemExit('${MODULE_NAME} not found on Python path. Are you in the correct venv?')
|
||||||
|
|
||||||
print(os.path.dirname(os.path.dirname(pillar.__file__)))
|
print(os.path.dirname(os.path.dirname(${MODULE_NAME}.__file__)))
|
||||||
EOT
|
EOT
|
||||||
)
|
)
|
||||||
if [ $(git -C $PILLAR_DIR rev-parse --abbrev-ref HEAD) != "production" ]; then
|
|
||||||
echo "Pillar ($PILLAR_DIR) NOT on the production branch, refusing to deploy." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Find Attract
|
if [ $(git -C $MODULE_DIR rev-parse --abbrev-ref HEAD) != "production" ]; then
|
||||||
ATTRACT_DIR=$(python <<EOT
|
echo "${MODULE_NAME}: ($MODULE_DIR) NOT on the production branch, refusing to deploy." >&2
|
||||||
from __future__ import print_function
|
exit 1
|
||||||
import os.path
|
fi
|
||||||
try:
|
|
||||||
import attract
|
|
||||||
except ImportError:
|
|
||||||
raise SystemExit('Attract not found on Python path. Are you in the correct venv?')
|
|
||||||
|
|
||||||
print(os.path.dirname(os.path.dirname(attract.__file__)))
|
echo $MODULE_DIR
|
||||||
EOT
|
}
|
||||||
)
|
|
||||||
if [ $(git -C $ATTRACT_DIR rev-parse --abbrev-ref HEAD) != "production" ]; then
|
# Find our modules
|
||||||
echo "Attract ($ATTRACT_DIR) NOT on the production branch, refusing to deploy." >&2
|
PILLAR_DIR=$(find_module pillar)
|
||||||
exit 1
|
ATTRACT_DIR=$(find_module attract)
|
||||||
fi
|
FLAMENCO_DIR=$(find_module flamenco)
|
||||||
|
|
||||||
|
echo "Pillar : $PILLAR_DIR"
|
||||||
|
echo "Attract : $ATTRACT_DIR"
|
||||||
|
echo "Flamenco: $FLAMENCO_DIR"
|
||||||
|
|
||||||
# SSH to cloud to pull all files in
|
# SSH to cloud to pull all files in
|
||||||
function git_pull() {
|
function git_pull() {
|
||||||
@@ -81,6 +79,7 @@ function git_pull() {
|
|||||||
git_pull pillar-python-sdk master
|
git_pull pillar-python-sdk master
|
||||||
git_pull pillar production
|
git_pull pillar production
|
||||||
git_pull attract production
|
git_pull attract production
|
||||||
|
git_pull flamenco production
|
||||||
git_pull blender-cloud production
|
git_pull blender-cloud production
|
||||||
|
|
||||||
# Update the virtualenv
|
# Update the virtualenv
|
||||||
@@ -88,6 +87,7 @@ git_pull blender-cloud production
|
|||||||
|
|
||||||
# RSync the world
|
# RSync the world
|
||||||
$ATTRACT_DIR/rsync_ui.sh
|
$ATTRACT_DIR/rsync_ui.sh
|
||||||
|
$FLAMENCO_DIR/rsync_ui.sh
|
||||||
./rsync_ui.sh
|
./rsync_ui.sh
|
||||||
|
|
||||||
# Notify Bugsnag of this new deploy.
|
# Notify Bugsnag of this new deploy.
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
XSendFilePath /data/storage/pillar
|
XSendFilePath /data/storage/pillar
|
||||||
XSendFilePath /data/git/pillar
|
XSendFilePath /data/git/pillar
|
||||||
XSendFilePath /data/venv/lib/python2.7/site-packages/attract/static/
|
XSendFilePath /data/venv/lib/python2.7/site-packages/attract/static/
|
||||||
|
XSendFilePath /data/venv/lib/python2.7/site-packages/flamenco/static/
|
||||||
XsendFilePath /data/git/blender-cloud
|
XsendFilePath /data/git/blender-cloud
|
||||||
|
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
|
@@ -7,6 +7,8 @@ if [ ! -f /installed ]; then
|
|||||||
ln -s /data/git/pillar/pillar /data/venv/lib/python2.7/site-packages/pillar
|
ln -s /data/git/pillar/pillar /data/venv/lib/python2.7/site-packages/pillar
|
||||||
# . /data/venv/bin/activate && pip install -e /data/git/attract
|
# . /data/venv/bin/activate && pip install -e /data/git/attract
|
||||||
ln -s /data/git/attract/attract /data/venv/lib/python2.7/site-packages/attract
|
ln -s /data/git/attract/attract /data/venv/lib/python2.7/site-packages/attract
|
||||||
|
# . /data/venv/bin/activate && pip install -e /data/git/flamenco
|
||||||
|
ln -s /data/git/flamenco/flamenco /data/venv/lib/python2.7/site-packages/flamenco
|
||||||
# . /data/venv/bin/activate && pip install -e /data/git/pillar-python-sdk
|
# . /data/venv/bin/activate && pip install -e /data/git/pillar-python-sdk
|
||||||
ln -s /data/git/pillar-python-sdk/pillarsdk /data/venv/lib/python2.7/site-packages/pillarsdk
|
ln -s /data/git/pillar-python-sdk/pillarsdk /data/venv/lib/python2.7/site-packages/pillarsdk
|
||||||
touch installed
|
touch installed
|
||||||
|
@@ -21,6 +21,7 @@ blender_cloud:
|
|||||||
volumes:
|
volumes:
|
||||||
- /data/git/blender-cloud:/data/git/blender-cloud:ro
|
- /data/git/blender-cloud:/data/git/blender-cloud:ro
|
||||||
- /data/git/attract:/data/git/attract:ro
|
- /data/git/attract:/data/git/attract:ro
|
||||||
|
- /data/git/flamenco:/data/git/flamenco:ro
|
||||||
- /data/git/pillar:/data/git/pillar:ro
|
- /data/git/pillar:/data/git/pillar:ro
|
||||||
- /data/git/pillar-python-sdk:/data/git/pillar-python-sdk:ro
|
- /data/git/pillar-python-sdk:/data/git/pillar-python-sdk:ro
|
||||||
- /data/config:/data/config:ro
|
- /data/config:/data/config:ro
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
# pillarsdk
|
# pillarsdk
|
||||||
# pillar
|
# pillar
|
||||||
# attract
|
# attract
|
||||||
|
# flamenco
|
||||||
|
|
||||||
# Secondary requirements (i.e. pulled in from primary requirements)
|
# Secondary requirements (i.e. pulled in from primary requirements)
|
||||||
algoliasearch==1.8.0
|
algoliasearch==1.8.0
|
||||||
@@ -47,6 +48,7 @@ pyasn1==0.1.9
|
|||||||
pyasn1-modules==0.0.8
|
pyasn1-modules==0.0.8
|
||||||
pycparser==2.14
|
pycparser==2.14
|
||||||
pycrypto==2.6.1
|
pycrypto==2.6.1
|
||||||
|
pylru==1.0.4
|
||||||
pymongo==3.3.0
|
pymongo==3.3.0
|
||||||
pyOpenSSL==0.15.1
|
pyOpenSSL==0.15.1
|
||||||
python-dateutil==2.5.3
|
python-dateutil==2.5.3
|
||||||
|
Reference in New Issue
Block a user