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 | |
| 11 | XOS_BOOTSTRAP_PORT ?= 9998 |
| 12 | XOS_UI_PORT ?= 9999 |
| 13 | |
| 14 | # Include common functions |
| 15 | include $(COMMON_DIR)/Makefile |
| 16 | |
| 17 | opencloud: prereqs config_dirs xos_download bootstrap onboarding opencloudconfig globalxos |
| 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 |
| 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) |