Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 1 | # opencloud/Makefile |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [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 ) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 5 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 6 | .DEFAULT_GOAL := xos |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 7 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 8 | DOCKER_PROJECT ?= oc |
| 9 | BOOTSTRAP_PROJECT ?= ocb |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 10 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 11 | # Include common functions |
| 12 | include $(COMMON_DIR)/Makefile |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 13 | |
Zack Williams | cf1f9c8 | 2016-11-08 22:19:02 -0700 | [diff] [blame^] | 14 | xos: prereqs config_dirs xos_download opencloud_services bootstrap onboarding |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 15 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 16 | opencloud_services: $(SERVICE_DIR) \ |
| 17 | $(SERVICE_DIR)/onos-service \ |
| 18 | $(SERVICE_DIR)/openstack \ |
| 19 | $(SERVICE_DIR)/vrouter \ |
| 20 | $(SERVICE_DIR)/vtn |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 21 | |
Zack Williams | 3670f44 | 2016-10-04 17:37:12 -0700 | [diff] [blame] | 22 | onboarding: synchronizers.yaml id_rsa id_rsa.pub |
| 23 | @echo "[ONBOARDING]" |
| 24 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 25 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
| 26 | sudo cp id_rsa key_import/onos_rsa |
| 27 | sudo cp id_rsa.pub key_import/onos_rsa.pub |
| 28 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml |
| 29 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vrouter/xos/vrouter-onboard.yaml |
| 30 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vtn/xos/vtn-onboard.yaml |
| 31 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/onos-service/xos/onos-onboard.yaml |
| 32 | $(RUN_TOSCA_BOOTSTRAP) synchronizers.yaml |
| 33 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
| 34 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vrouter |
| 35 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/vtn |
| 36 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/onos |
| 37 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 38 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 39 | |
Zack Williams | cf1f9c8 | 2016-11-08 22:19:02 -0700 | [diff] [blame^] | 40 | opencloud: nodes.yaml management-net.yaml |
Zack Williams | 2c1f859 | 2016-11-01 21:51:26 -0700 | [diff] [blame] | 41 | @echo "[OPENCLOUD]" |
Zack Williams | cf1f9c8 | 2016-11-08 22:19:02 -0700 | [diff] [blame^] | 42 | $(RUN_TOSCA) nodes.yaml |
| 43 | $(RUN_TOSCA) management-net.yaml |
Zack Williams | 2c1f859 | 2016-11-01 21:51:26 -0700 | [diff] [blame] | 44 | |
| 45 | vtn: vtn.yaml |
| 46 | @echo "[VTN]" |
| 47 | $(RUN_TOSCA) vtn.yaml |
| 48 | |
| 49 | exampleservice: $(SERVICE_DIR)/exampleservice opencloud-exampleservice.yaml |
| 50 | @echo "[EXAMPLESERVICE]" |
| 51 | sudo cp id_rsa key_import/exampleservice_rsa |
| 52 | sudo cp id_rsa.pub key_import/exampleservice_rsa.pub |
| 53 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml |
| 54 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/exampleservice/xos/exampleservice-onboard.yaml |
| 55 | $(RUN_TOSCA_BOOTSTRAP) exampleservice-synchronizer.yaml |
| 56 | $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml |
| 57 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/exampleservice |
| 58 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 59 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |
| 60 | $(RUN_TOSCA) opencloud-exampleservice.yaml |
| 61 | |