Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 1 | # globalxos/Makefile |
| 2 | |
| 3 | CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) |
| 4 | COMMON_DIR := $(abspath ../common ) |
| 5 | |
| 6 | .DEFAULT_GOAL := opencloud |
| 7 | |
| 8 | DOCKER_PROJECT ?= globalxos |
| 9 | BOOTSTRAP_PROJECT ?= globalxosbs |
| 10 | |
Matteo Scandolo | a317b87 | 2017-01-10 12:02:41 -0800 | [diff] [blame] | 11 | XOS_BOOTSTRAP_PORT ?= 9001 |
| 12 | XOS_UI_PORT ?= 9000 |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 13 | |
| 14 | # Include common functions |
| 15 | include $(COMMON_DIR)/Makefile |
| 16 | |
Matteo Scandolo | 8710436 | 2016-11-10 15:04:21 -0800 | [diff] [blame] | 17 | opencloud: prereqs config_dirs xos_download cord_libraries bootstrap onboarding opencloudconfig globalxos |
Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 18 | |
| 19 | onboarding: |
| 20 | @echo "[ONBOARDING]" |
| 21 | # on-board any services here |
| 22 | bash ../common/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 23 | bash ../common/wait_for_xos_port.sh $(XOS_UI_PORT) |
| 24 | |
| 25 | opencloudconfig: |
| 26 | @echo "[OPENCLOUDCONFIG]" |
| 27 | $(RUN_TOSCA) opencloud.yaml |
| 28 | $(RUN_TOSCA) dashboard.yaml |
| 29 | |
| 30 | globalxos: $(SERVICE_DIR) $(SERVICE_DIR)/globalxos |
| 31 | $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/globalxos/xos/globalxos-onboard.yaml |
Matteo Scandolo | 8710436 | 2016-11-10 15:04:21 -0800 | [diff] [blame] | 32 | $(RUN_TOSCA_BOOTSTRAP) $(LIBRARY_DIR)/ng-xos-lib/ng-xos-lib-onboard.yaml |
| 33 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/ng-xos-lib |
| 34 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/globalxos |
| 35 | bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos |
| 36 | bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT) |