blob: 3f0a39a69b6e7f34f206ca726e072c73afe7cecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
.PHONY: all clean helm base cba clean_all
DUMMY_ONBOARDING_PACKAGE_NAME ?= vfw_k8s_demo
NATIVE_ONBOARDING_PACKAGE_NAME ?= native_vfw_k8s_demo
CBA_NAME ?= CBA
clean_all:
$(MAKE) clean
$(MAKE) all
#Can't use .csar extension or SDC will panic
all: package/ helm base cba
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 .
cp $(DUMMY_ONBOARDING_PACKAGE_NAME).zip ../automation/vsp/
cp $(NATIVE_ONBOARDING_PACKAGE_NAME).zip ../automation/vsp/
helm: package/
make -C helm
mv helm/helm_*.tgz package_native/
mv helm/*.tgz package_dummy/
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_native/
mv cba_dummy/$(CBA_NAME).zip package_dummy/
package/:
mkdir package_dummy/
mkdir package_native/
clean:
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
|