[APACHE] Add Apache CNF use case files
[demo.git] / tutorials / ApacheCNF / templates / helm / Makefile
diff --git a/tutorials/ApacheCNF/templates/helm/Makefile b/tutorials/ApacheCNF/templates/helm/Makefile
new file mode 100644 (file)
index 0000000..5bcea8f
--- /dev/null
@@ -0,0 +1,17 @@
+vf-modules = apache
+.PHONY: build clean $(vf-modules:=-build) $(vf-modules:-clean) $(vf-modules:=-package)
+
+package: $(vf-modules:=-package)
+build: $(vf-modules:=-build)
+clean: $(vf-modules:=-clean)
+
+$(vf-modules:=-package): %-package: %-build
+       mv $(@:package=)*.tgz helm_$(@:-package=).tgz
+
+$(vf-modules:=-build): %-build: %-clean
+       helm repo add bitnami https://charts.bitnami.com/bitnami
+       helm pull bitnami/apache --version 7.6.0
+
+$(vf-modules:=-clean):
+       rm -f $(@:-clean=)-*.tgz
+       rm -f helm_$(@:-clean=).tgz