blob: f7986856b8a5ed86953cdef15718139a43e91bf4 [file] [log] [blame]
Andy Bavier21f243a2015-04-24 13:19:47 -04001#!/bin/sh
2
3TMPDIR="/tmp/initdata"
4XOSDIR="/home/ubuntu/xos"
5
6mkdir -p $TMPDIR
7rm -f $TMPDIR/*.json
8
9XOS=$( docker ps|grep "xos:latest"|awk '{print $NF}' )
10docker exec $XOS /opt/xos/scripts/opencloud dumpdata
11docker cp $XOS:/opt/xos_backups/dumpdata-latest.json $TMPDIR
12cp $TMPDIR/*.json $XOSDIR/xos/core/fixtures/initial_data.json
13
14git pull
15docker build -t xos .
16
17docker stop $XOS
18docker run -p 8000:8000 xos