Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 1 | MYIP:=$(shell hostname -i) |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 2 | |
| 3 | frontend: |
Andy Bavier | beecd48 | 2016-01-11 08:12:17 -0500 | [diff] [blame] | 4 | sudo make -f ../common/Makefile.prereqs |
Andy Bavier | 443ca9a | 2016-01-08 09:22:46 -0500 | [diff] [blame] | 5 | sudo docker-compose up -d |
Matteo Scandolo | b989ed7 | 2015-10-20 12:07:14 +0200 | [diff] [blame] | 6 | bash ../common/wait_for_xos.sh |
Scott Baker | b0990d3 | 2016-04-25 20:16:31 -0700 | [diff] [blame] | 7 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/fixtures.yaml |
Scott Baker | 4633ca5 | 2016-04-22 09:25:46 -0700 | [diff] [blame] | 8 | sudo docker-compose run xos python /opt/xos/tosca/run.py none /opt/xos/configurations/common/mydeployment.yaml |
Andy Bavier | 443ca9a | 2016-01-08 09:22:46 -0500 | [diff] [blame] | 9 | sudo docker-compose run xos python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/sample.yaml |
Matteo Scandolo | c93c8e6 | 2015-11-10 15:10:21 +0100 | [diff] [blame] | 10 | |
Andy Bavier | 5144cc0 | 2016-01-20 13:18:38 -0800 | [diff] [blame] | 11 | containers: |
| 12 | cd ../../../containers/xos; make devel |
| 13 | |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 14 | stop: |
Andy Bavier | 443ca9a | 2016-01-08 09:22:46 -0500 | [diff] [blame] | 15 | sudo docker-compose stop |
Matteo Scandolo | b989ed7 | 2015-10-20 12:07:14 +0200 | [diff] [blame] | 16 | |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 17 | showlogs: |
Andy Bavier | 443ca9a | 2016-01-08 09:22:46 -0500 | [diff] [blame] | 18 | sudo docker-compose logs |
| 19 | |
| 20 | rm: stop |
| 21 | sudo docker-compose rm |
| 22 | |
| 23 | ps: |
| 24 | sudo docker-compose ps |
Scott Baker | a6a4372 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 25 | |
Andy Bavier | 62c7347 | 2016-01-08 14:18:00 -0500 | [diff] [blame] | 26 | enter-xos: |
| 27 | sudo docker exec -ti frontend_xos_1 bash |
Matteo Scandolo | edeae2d | 2016-02-11 11:04:20 -0800 | [diff] [blame] | 28 | |
Matteo Scandolo | 335c9b7 | 2016-03-25 13:33:10 -0700 | [diff] [blame] | 29 | django-restart: |
Matteo Scandolo | edeae2d | 2016-02-11 11:04:20 -0800 | [diff] [blame] | 30 | sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py |
Matteo Scandolo | df35ca9 | 2016-02-25 09:19:41 -0800 | [diff] [blame] | 31 | |
Scott Baker | 04f3d7e | 2016-04-13 11:26:45 -0700 | [diff] [blame] | 32 | mock-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 Scandolo | df35ca9 | 2016-02-25 09:19:41 -0800 | [diff] [blame] | 34 | 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 Scandolo | ea610b2 | 2016-04-22 09:18:48 -0700 | [diff] [blame] | 36 | sudo docker exec frontend_xos_1 cp /opt/xos/configurations/mcord/xos_mcord_config /opt/xos/xos_configuration/ |
Scott Baker | 269c9aa | 2016-04-13 15:44:42 -0700 | [diff] [blame] | 37 | 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 Scandolo | c2d6bf0 | 2016-05-05 09:24:09 -0700 | [diff] [blame] | 39 | sudo docker exec frontend_xos_1 cp /opt/xos/configurations/cord-pod/xos_cord_config /opt/xos/xos_configuration/ |
Scott Baker | 04f3d7e | 2016-04-13 11:26:45 -0700 | [diff] [blame] | 40 | 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 Scandolo | 02e2620 | 2016-05-12 10:34:57 -0700 | [diff] [blame] | 44 | |
| 45 | mock-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 Scandolo | df35ca9 | 2016-02-25 09:19:41 -0800 | [diff] [blame] | 51 | 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 |