
Use debian method to apply local patches instead of patching in rules. Add "dl_path" and "src_files" in meta_data.yaml to download tarball and copy local files. No need dl_hook Test Plan: Pass: successfully build monitor-helm-elastic. Pass: No difference comparing with the result of dl_hook Story: 2009101 Task: 43838 Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Change-Id: I068f3ae0cbf9e0661abc12adcec005be145f2462
29 lines
748 B
Makefile
Executable File
29 lines
748 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export ROOT = debian/tmp
|
|
export HELM_FOLDER = $(ROOT)/usr/lib/helm
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
# Host a server for the helm charts.
|
|
chartmuseum --debug --port=8879 --context-path='/charts' --storage="local" --storage-local-rootdir="." &
|
|
sleep 2
|
|
helm repo add local http://localhost:8879/charts
|
|
# Create the chart TGZ files.
|
|
rm elasticsearch/Makefile kibana/Makefile filebeat/Makefile metricbeat/Makefile logstash/Makefile
|
|
make elasticsearch
|
|
make kibana
|
|
make filebeat
|
|
make metricbeat
|
|
make logstash
|
|
# Terminate the helm chart server.
|
|
pkill chartmuseum
|
|
|
|
override_dh_auto_install:
|
|
# Install the app tar file.
|
|
install -d -m 755 $(HELM_FOLDER)
|
|
install -p -D -m 755 *.tgz $(HELM_FOLDER)
|