Scott Baker | 381d0c3 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 1 | MYIP:=$(shell hostname -i) |
Scott Baker | 381d0c3 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 2 | |
| 3 | frontend: |
Andy Bavier | be9a9ca | 2016-01-11 08:12:17 -0500 | [diff] [blame] | 4 | sudo make -f ../common/Makefile.prereqs |
Andy Bavier | 75be64b | 2016-01-08 09:22:46 -0500 | [diff] [blame] | 5 | sudo docker-compose up -d |
Matteo Scandolo | 28c5f6c | 2015-10-20 12:07:14 +0200 | [diff] [blame] | 6 | bash ../common/wait_for_xos.sh |
Scott Baker | d75dd14 | 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 | cf6e410 | 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 | 75be64b | 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 | 74ad12e | 2015-11-10 15:10:21 +0100 | [diff] [blame] | 10 | |
Andy Bavier | 1421433 | 2016-01-20 13:18:38 -0800 | [diff] [blame] | 11 | containers: |
| 12 | cd ../../../containers/xos; make devel |
| 13 | |
Scott Baker | 381d0c3 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 14 | stop: |
Andy Bavier | 75be64b | 2016-01-08 09:22:46 -0500 | [diff] [blame] | 15 | sudo docker-compose stop |
Matteo Scandolo | 28c5f6c | 2015-10-20 12:07:14 +0200 | [diff] [blame] | 16 | |
Scott Baker | 381d0c3 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 17 | showlogs: |
Andy Bavier | 75be64b | 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 | 381d0c3 | 2015-09-30 20:34:05 -0700 | [diff] [blame] | 25 | |
Andy Bavier | b46dce8 | 2016-01-08 14:18:00 -0500 | [diff] [blame] | 26 | enter-xos: |
| 27 | sudo docker exec -ti frontend_xos_1 bash |
Matteo Scandolo | 9f3628e | 2016-02-11 11:04:20 -0800 | [diff] [blame] | 28 | |
Matteo Scandolo | fa1ddd3 | 2016-03-25 13:33:10 -0700 | [diff] [blame] | 29 | django-restart: |
| 30 | sudo docker exec frontend_xos_1 touch /opt/xos/xos/settings.py |
| 31 | |
Matteo Scandolo | 9f3628e | 2016-02-11 11:04:20 -0800 | [diff] [blame] | 32 | mock-cord: |
| 33 | 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 Baker | fb27a6d | 2016-04-13 11:26:45 -0700 | [diff] [blame] | 36 | |
| 37 | mock-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 Baker | 520a9b6 | 2016-04-13 15:44:42 -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" |
Scott Baker | fb27a6d | 2016-04-13 11:26:45 -0700 | [diff] [blame] | 42 | 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 |