blob: da61ea9183a9decd7b2448f50082b44534fc6316 [file] [log] [blame]
Zack Williams3670f442016-10-04 17:37:12 -07001# opencloud/Makefile
Scott Baker8ed63bb2016-07-07 14:20:08 -07002
Zack Williams3670f442016-10-04 17:37:12 -07003CONFIG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
4COMMON_DIR := $(abspath ../common )
Scott Baker50421662016-06-27 22:09:48 -07005
Zack Williams3670f442016-10-04 17:37:12 -07006.DEFAULT_GOAL := xos
Scott Baker50421662016-06-27 22:09:48 -07007
Zack Williams3670f442016-10-04 17:37:12 -07008DOCKER_PROJECT ?= devel
9BOOTSTRAP_PROJECT ?= develbs
Scott Baker50421662016-06-27 22:09:48 -070010
Zack Williams3670f442016-10-04 17:37:12 -070011XOS_BOOTSTRAP_PORT ?= 9998
12XOS_UI_PORT ?= 9999
Scott Baker8ed63bb2016-07-07 14:20:08 -070013
Zack Williams3670f442016-10-04 17:37:12 -070014# Include common functions
15include $(COMMON_DIR)/Makefile
Scott Baker8ed63bb2016-07-07 14:20:08 -070016
Zack Williams3670f442016-10-04 17:37:12 -070017cloudlab: xos_download common_cloudlab local_containers xos
Scott Baker8ed63bb2016-07-07 14:20:08 -070018
Zack Williams3670f442016-10-04 17:37:12 -070019devstack: xos_download upgrade_pkgs common_devstack local_containers xos
Scott Baker8ed63bb2016-07-07 14:20:08 -070020
Zack Williams3670f442016-10-04 17:37:12 -070021xos: config_dirs cord_services bootstrap onboarding develconfig
Scott Baker8ed63bb2016-07-07 14:20:08 -070022
Scott Baker5ccabfe2016-08-22 16:49:14 -070023xos.yaml: xos.m4
24 m4 -D CTLIP=$(MYIP) < xos.m4 > xos.yaml
25
Scott Baker8ed63bb2016-07-07 14:20:08 -070026onboarding:
27 echo "[ONBOARDING]"
28 # on-board any services here
Zack Williams3670f442016-10-04 17:37:12 -070029 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
30 $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/disable-onboarding.yaml
Scott Baker785f7112016-08-19 10:04:05 -070031 $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/openstack/xos/openstack-onboard.yaml
Zack Williams3670f442016-10-04 17:37:12 -070032 $(RUN_TOSCA_BOOTSTRAP) $(COMMON_DIR)/tosca/enable-onboarding.yaml
33 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) services/openstack
34 bash $(COMMON_DIR)/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
35 bash $(COMMON_DIR)/wait_for_xos_port.sh $(XOS_UI_PORT)
Scott Baker8ed63bb2016-07-07 14:20:08 -070036
37develconfig:
Zack Williams3670f442016-10-04 17:37:12 -070038 $(RUN_TOSCA) $(COMMON_DIR)/tosca/cloudlab-openstack.yaml
Scott Baker8ed63bb2016-07-07 14:20:08 -070039 $(RUN_TOSCA) ../setup/nodes.yaml
Scott Baker50421662016-06-27 22:09:48 -070040
41common_cloudlab:
Zack Williams3670f442016-10-04 17:37:12 -070042 make -C $(COMMON_DIR) -f Makefile.cloudlab
Scott Baker50421662016-06-27 22:09:48 -070043
44common_devstack:
Zack Williams3670f442016-10-04 17:37:12 -070045 make -C $(COMMON_DIR) -f Makefile.devstack