
This is the Final commit for the feature testing. - centos files: files related with the infra and docker images - rst files: files with doc about SDO-rv-app - stx-sdo-helm folder: files related with helm charts and the app creation NOTE: Tested on BUILD_ID="20210202T000311Z" Story: 2008117 Task: 41489 Closes-Bug: 1917330 Change-Id: I59ae8186b8def756d2cd72f3a39c618a54ccc6d9 Signed-off-by: Poornima <poornima.y.n@intel.com>
61 lines
1.5 KiB
RPMSpec
61 lines
1.5 KiB
RPMSpec
%global helm_folder /usr/lib/helm
|
|
%global armada_folder /usr/lib/armada
|
|
%global app_folder /usr/lib/application
|
|
%global toolkit_version 0.1.0
|
|
%global helmchart_version 0.1.0
|
|
|
|
Summary: StarlingX SDO Application Helm charts
|
|
Name: stx-sdo-helm
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Intel
|
|
URL: unknown
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: helm
|
|
BuildRequires: chartmuseum
|
|
BuildRequires: openstack-helm-infra
|
|
|
|
%description
|
|
StarlingX SDO Application Helm charts
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
# Stage helm-toolkit in the local repo
|
|
cp %{helm_folder}/helm-toolkit-%{toolkit_version}.tgz helm-charts/
|
|
|
|
# Host a server for the charts
|
|
chartmuseum --debug --port=8879 --context-path='/charts' --storage="local" --storage-local-rootdir="./helm-charts" &
|
|
sleep 2
|
|
helm repo add local http://localhost:8879/charts
|
|
|
|
# Make the charts. These produce a tgz file
|
|
cd helm-charts
|
|
make sdo
|
|
cd -
|
|
|
|
# terminate helm server (the last backgrounded task)
|
|
kill %1
|
|
|
|
%install
|
|
# helm_folder is created by openstack-helm-infra
|
|
install -d -m 755 ${RPM_BUILD_ROOT}%{app_folder}
|
|
install -p -D -m 755 files/metadata.yaml ${RPM_BUILD_ROOT}%{app_folder}
|
|
install -d -m 755 ${RPM_BUILD_ROOT}%{helm_folder}
|
|
install -p -D -m 755 helm-charts/*.tgz ${RPM_BUILD_ROOT}%{helm_folder}
|
|
install -d -m 755 ${RPM_BUILD_ROOT}%{armada_folder}
|
|
install -p -D -m 755 manifests/*.yaml ${RPM_BUILD_ROOT}%{armada_folder}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{helm_folder}/*
|
|
%{armada_folder}/*
|
|
%{app_folder}/*
|