blob: 9f0606441629ed97f2ee851043283dc0f5b21260 [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
17opencloud: prereqs config_dirs xos_download bootstrap onboarding opencloudconfig globalxos
18
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
32 bash ../common/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/globalxos
33 bash ../common/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
34 bash ../common/wait_for_xos_port.sh $(XOS_UI_PORT)