2 SUMMARY = "Monitor Helm Elastic charts"
3 DESCRIPTION = "Monitor Helm Elastic charts"
6 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
15 SRCREV_helm-charts-elastic = "2bd7616ceddbdf2eee88965e2028ee37d304c79c"
17 # Patches pulled from:
18 # SRCREV_monitor-armada-app = "e5ee6b3a07b74479b93fe90eff0662cf81890f73"
19 # git://opendev.org/starlingx/monitor-armada-app.git
22 git://github.com/elastic/helm-charts;protocol=${PROTOCOL};name=helm-charts-elastic \
23 file://0001-add-makefile.patch \
24 file://0002-Add-compatibility-for-k8s-1.16.patch \
25 file://0003-use-oss-image.patch \
26 file://0004-Update-to-Elastic-7.4.0-Release.patch \
27 file://0005-set-initial-masters-to-master-0.patch \
29 file://repositories.yaml \
33 PATCH_COMMIT_FUNCTIONS = "1"
39 helm_folder = "${nonarch_libdir}/helm"
40 helmchart_version = "0.1.0"
42 do_configure[noexec] = "1"
45 # initialize helm and build the toolkit
46 # helm init --client-only does not work if there is no networking
47 # The following commands do essentially the same as: helm init
48 export HOME="${B}/${USER}"
49 export helm_home="${B}/${USER}/.helm"
53 mkdir ${helm_home}/repository
54 mkdir ${helm_home}/repository/cache
55 mkdir ${helm_home}/repository/local
56 mkdir ${helm_home}/plugins
57 mkdir ${helm_home}/starters
58 mkdir ${helm_home}/cache
59 mkdir ${helm_home}/cache/archive
61 # Stage a repository file that only has a local repo
62 install -m 0644 ${WORKDIR}/repositories.yaml \
63 ${helm_home}/repository/repositories.yaml
65 # Stage a local repo index that can be updated by the build
66 install -m 0644 ${WORKDIR}/index.yaml ${helm_home}/repository/local/index.yaml
68 # Host a server for the charts
69 helm serve --repo-path . &
72 helm repo add local http://localhost:8879/charts
74 # Create the tgz files
75 rm -f elasticsearch/Makefile
78 # terminate helm server (the last backgrounded task)
84 install -d -m 755 ${D}${helm_folder}
85 install -p -D -m 755 ${B}/*.tgz ${D}${helm_folder}
88 FILES_${PN} = "${helm_folder}"