blob: 27b00444e8e3308f6c766ec8b7780548443235f2 [file] [log] [blame]
Scott Bakera6a43722015-09-30 20:34:05 -07001MYIP:=$(shell hostname -i)
Scott Bakera6a43722015-09-30 20:34:05 -07002
3frontend:
Andy Bavierbeecd482016-01-11 08:12:17 -05004 sudo make -f ../common/Makefile.prereqs
Andy Bavier443ca9a2016-01-08 09:22:46 -05005 sudo docker-compose up -d
Matteo Scandolob989ed72015-10-20 12:07:14 +02006 bash ../common/wait_for_xos.sh
Scott Baker4633ca52016-04-22 09:25:46 -07007 sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml
Andy Bavier443ca9a2016-01-08 09:22:46 -05008 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/sample.yaml
Matteo Scandoloc93c8e62015-11-10 15:10:21 +01009
Andy Bavier5144cc02016-01-20 13:18:38 -080010containers:
11 cd ../../../containers/xos; make devel
12
Scott Bakera6a43722015-09-30 20:34:05 -070013stop:
Andy Bavier443ca9a2016-01-08 09:22:46 -050014 sudo docker-compose stop
Matteo Scandolob989ed72015-10-20 12:07:14 +020015
Scott Bakera6a43722015-09-30 20:34:05 -070016showlogs:
Andy Bavier443ca9a2016-01-08 09:22:46 -050017 sudo docker-compose logs
18
19rm: stop
20 sudo docker-compose rm
21
22ps:
23 sudo docker-compose ps
Scott Bakera6a43722015-09-30 20:34:05 -070024
Andy Bavier62c73472016-01-08 14:18:00 -050025enter-xos:
26 sudo docker exec -ti frontend_xos_1 bash
Matteo Scandoloedeae2d2016-02-11 11:04:20 -080027
Matteo Scandolo335c9b72016-03-25 13:33:10 -070028django-restart:
29 sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py
30
Matteo Scandoloedeae2d2016-02-11 11:04:20 -080031mock-cord:
Scott Baker64044412016-02-18 10:45:15 -080032 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/fixtures.yaml
Matteo Scandoloedeae2d2016-02-11 11:04:20 -080033 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/mocks/cord.yaml
34 sudo docker exec frontend_xos_1 cp /opt/xos/configurations/cord/xos_cord_config /opt/xos/xos_configuration/
35 sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py
Scott Baker04f3d7e2016-04-13 11:26:45 -070036
37mock-cord-pod:
38 echo "make sure to add '../vtn/files/xos_vtn_config:/opt/xos/xos_configuration/xos_vtn_config:ro' to volumes section of docker-compose.yml"
39 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/fixtures.yaml
Scott Baker269c9aa2016-04-13 15:44:42 -070040 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/cord-pod/mgmt-net.yaml
41 sudo docker-compose run xos bash -c "echo somekey > /opt/xos/synchronizers/vcpe/vcpe_public_key; python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/cord-pod/cord-vtn-vsg.yaml"
Scott Baker04f3d7e2016-04-13 11:26:45 -070042 sudo docker exec frontend_xos_1 cp /opt/xos/configurations/cord/xos_cord_config /opt/xos/xos_configuration/
43 sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py