Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 1 | # frontend/Makefile |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 2 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 3 | CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
| 4 | COMMON_DIR := $(abspath ../common ) |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 5 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 6 | .DEFAULT_GOAL := metronetwork |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 7 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 8 | DOCKER_PROJECT ?= metronetwork |
| 9 | BOOTSTRAP_PROJECT ?= metronetworkbs |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 10 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 11 | XOS_BOOTSTRAP_PORT ?= 9998 |
| 12 | XOS_UI_PORT ?= 9999 |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 13 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 14 | # Include common functions |
| 15 | include $(COMMON_DIR)/Makefile |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 16 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 17 | metronetwork: prereqs config_dirs xos_download cord_services bootstrap dashboard onboarding ecord_services |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 18 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 19 | dashboard: |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 20 | $(RUN_TOSCA_BOOTSTRAP) dashboard.yaml |
| 21 | |
| 22 | onboarding: |
| 23 | @echo "[ONBOARDING]" |
| 24 | # on-board the metronetwork service |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 25 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 26 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 27 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/metro-net/xos/metronetworkservice-onboard.yaml |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 28 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
| 29 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/metronetwork |
| 30 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 31 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 32 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 33 | ecord_services: |
Matteo Scandolo | 74a062a | 2016-09-23 14:15:06 -0700 | [diff] [blame] | 34 | $(RUN_TOSCA) ecord-services.yaml |
| 35 | |
Rizwan Haider | 752a48c | 2016-08-18 15:37:06 -0400 | [diff] [blame] | 36 | clean-config-folder: |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame^] | 37 | sudo docker exec $(DOCKER_PROJECT)_xos_ui_1 rm -f /opt/xos/xos_configuration/xos_mcord_config |
| 38 | sudo docker exec $(DOCKER_PROJECT)_xos_ui_1 rm -f /opt/xos/xos_configuration/xos_cord_config |