aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/Makefile')
-rw-r--r--heat/vFW_CNF_CDS/templates/Makefile31
1 files changed, 22 insertions, 9 deletions
diff --git a/heat/vFW_CNF_CDS/templates/Makefile b/heat/vFW_CNF_CDS/templates/Makefile
index 38a4b389..7ca4ac04 100644
--- a/heat/vFW_CNF_CDS/templates/Makefile
+++ b/heat/vFW_CNF_CDS/templates/Makefile
@@ -1,5 +1,6 @@
.PHONY: all clean helm base cba clean_all
-ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
+DUMMY_ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
+NATIVE_ONBOARDING_PACKAGE_NAME ?= native_vfw_k8s_demo
CBA_NAME ?= CBA
clean_all:
@@ -8,23 +9,35 @@ clean_all:
#Can't use .csar extension or SDC will panic
all: package/ helm base cba
- cd package/ && zip -r $(ONBOARDING_PACKAGE_NAME).zip .
- mv package/$(ONBOARDING_PACKAGE_NAME).zip .
+ cd package_dummy/ && zip -r $(DUMMY_ONBOARDING_PACKAGE_NAME).zip .
+ cd package_native/ && zip -r $(NATIVE_ONBOARDING_PACKAGE_NAME).zip .
+ mv package_dummy/$(DUMMY_ONBOARDING_PACKAGE_NAME).zip .
+ mv package_native/$(NATIVE_ONBOARDING_PACKAGE_NAME).zip .
helm: package/
make -C helm
- mv helm/*.tgz package/
+ mv helm/helm_*.tgz package_native/
+ mv helm/*.tgz package_dummy/
base: package/
- cp base/* package/
+ cp base_dummy/* package_dummy/
+ cp base_native/* package_native/
cba: package/
+ cp -r cba cba_dummy
+ sed -i 's/"helm_/"/g' cba_dummy/Definitions/vFW_CNF_CDS.json
+ cd cba_dummy/ && zip -r $(CBA_NAME).zip . -x pom.xml .idea/\* target/\*
cd cba/ && zip -r $(CBA_NAME).zip . -x pom.xml .idea/\* target/\*
- mv cba/$(CBA_NAME).zip package/
+ mv cba/$(CBA_NAME).zip package_native/
+ mv cba_dummy/$(CBA_NAME).zip package_dummy/
package/:
- mkdir package/
+ mkdir package_dummy/
+ mkdir package_native/
clean:
- rm -rf package/
- rm -f $(ONBOARDING_PACKAGE_NAME).zip
+ rm -rf package_dummy/
+ rm -rf package_native/
+ rm -rf cba_dummy
+ rm -f $(DUMMY_ONBOARDING_PACKAGE_NAME).zip
+ rm -f $(NATIVE_ONBOARDING_PACKAGE_NAME).zip