blob: d3faad04348f0dfdd40803b0922f78742585332c [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 Bakerb0990d32016-04-25 20:16:31 -07007 sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml
Scott Baker4633ca52016-04-22 09:25:46 -07008 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 -05009 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 +010010
Andy Bavier5144cc02016-01-20 13:18:38 -080011containers:
12 cd ../../../containers/xos; make devel
13
Scott Bakera6a43722015-09-30 20:34:05 -070014stop:
Andy Bavier443ca9a2016-01-08 09:22:46 -050015 sudo docker-compose stop
Matteo Scandolob989ed72015-10-20 12:07:14 +020016
Scott Bakera6a43722015-09-30 20:34:05 -070017showlogs:
Andy Bavier443ca9a2016-01-08 09:22:46 -050018 sudo docker-compose logs
19
20rm: stop
21 sudo docker-compose rm
22
23ps:
24 sudo docker-compose ps
Scott Bakera6a43722015-09-30 20:34:05 -070025
Andy Bavier62c73472016-01-08 14:18:00 -050026enter-xos:
27 sudo docker exec -ti frontend_xos_1 bash
Matteo Scandoloedeae2d2016-02-11 11:04:20 -080028
Matteo Scandolo335c9b72016-03-25 13:33:10 -070029django-restart:
Matteo Scandoloedeae2d2016-02-11 11:04:20 -080030 sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py
Matteo Scandolodf35ca92016-02-25 09:19:41 -080031
Scott Baker04f3d7e2016-04-13 11:26:45 -070032mock-cord-pod:
33 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"
Matteo Scandolodf35ca92016-02-25 09:19:41 -080034 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/fixtures.yaml
35 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/mocks/mcord.yaml
Matteo Scandoloea610b22016-04-22 09:18:48 -070036 sudo docker exec frontend_xos_1 cp /opt/xos/configurations/mcord/xos_mcord_config /opt/xos/xos_configuration/
Scott Baker269c9aa2016-04-13 15:44:42 -070037 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/cord-pod/mgmt-net.yaml
38 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"
Matteo Scandoloc2d6bf02016-05-05 09:24:09 -070039 sudo docker exec frontend_xos_1 cp /opt/xos/configurations/cord-pod/xos_cord_config /opt/xos/xos_configuration/
Scott Baker04f3d7e2016-04-13 11:26:45 -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"
42 sudo docker exec frontend_xos_1 cp /opt/xos/configurations/cord-pod/xos_cord_config /opt/xos/xos_configuration/
43 sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py
Matteo Scandolo02e26202016-05-12 10:34:57 -070044
45mock-mcord:
46 # check this
47 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"
48 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/common/fixtures.yaml
49 sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/cord-pod/mgmt-net.yaml
50 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"
Matteo Scandolodf35ca92016-02-25 09:19:41 -080051 sudo docker exec frontend_xos_1 cp /opt/xos/configurations/mcord/xos_mcord_config /opt/xos/xos_configuration/
52 sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py