blob: 8f14c38974d6da47a10cabbefed7a705f4f17e12 [file] [log] [blame]
Andy Bavier094e7162016-11-02 17:01:22 -04001# globalxos/Makefile
2
3CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
4COMMON_DIR := $(abspath ../common )
5
6.DEFAULT_GOAL := opencloud
7
8DOCKER_PROJECT ?= globalxos
9BOOTSTRAP_PROJECT ?= globalxosbs
10
11XOS_BOOTSTRAP_PORT ?= 9998
12XOS_UI_PORT ?= 9999
13
14# Include common functions
15include $(COMMON_DIR)/Makefile
16
Matteo Scandolo87104362016-11-10 15:04:21 -080017opencloud: prereqs config_dirs xos_download cord_libraries bootstrap onboarding opencloudconfig globalxos
Andy Bavier094e7162016-11-02 17:01:22 -040018
19onboarding:
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
25opencloudconfig:
26 @echo "[OPENCLOUDCONFIG]"
27 $(RUN_TOSCA) opencloud.yaml
28 $(RUN_TOSCA) dashboard.yaml
29
30globalxos: $(SERVICE_DIR) $(SERVICE_DIR)/globalxos
31 $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/globalxos/xos/globalxos-onboard.yaml
Matteo Scandolo87104362016-11-10 15:04:21 -080032 $(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)