Add debian package stx-sdo-helm

Add debian packaging infrastructure for sdx-sdo-helm to build
a debian package.

Test Plan:
PASS: Built package
PASS: Built iso
PASS: Installed controller

Story: 2009101
Task: 44045

Signed-off-by: Ramon Gazoni Lacerda <Ramon.GazoniLacerda@windriver.com>
Change-Id: I0592b9619b5367a937e4d4c92874dcf220d1c8d7
This commit is contained in:
Ramon Gazoni Lacerda 2021-11-23 09:51:06 -03:00
parent bb6dec5d0d
commit ad23e138db
8 changed files with 116 additions and 0 deletions

1
debian_pkg_dirs Normal file
View File

@ -0,0 +1 @@
stx-sdo-helm

View File

@ -0,0 +1,5 @@
stx-sdo-helm (1.0-1) unstable; urgency=medium
* Initial release.
-- Ramon Gazoni Lacerda <Ramon.GazoniLacerda@windriver.com> Fri, 12 Nov 2021 10:33:54 -0300

View File

@ -0,0 +1,18 @@
Source: stx-sdo-helm
Section: libs
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
chartmuseum,
helm,
openstack-helm-infra,
procps
Standards-Version: 4.1.2
Homepage: https://www.starlingx.io
Package: stx-sdo-helm
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: StarlingX SDO Application Helm charts
A StarlingX SDO Application Helm charts

View File

@ -0,0 +1,41 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: stx-sdo-helm
Source: https://opendev.org/starlingx/SDO-rv-service/
Files: *
Copyright: (c) 2013-2021 Wind River Systems, Inc
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2021 Wind River Systems, Inc
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -0,0 +1,40 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export ROOT = debian/tmp
export APP_FOLDER = $(ROOT)/usr/lib/application
export ARMADA_FOLDER = $(ROOT)/usr/lib/armada
export HELM_FOLDER = $(ROOT)/usr/lib/helm
export TOOLKIT_VERSION = 0.2.19
%:
dh $@
override_dh_auto_build:
# Stage helm-toolkit in the local repo
cp /usr/lib/helm/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
# Create the TGZ file.
cd helm-charts && make
# Terminate the helm chart server.
pkill chartmuseum
override_dh_auto_install:
# helm_folder is created by openstack-helm-infra
install -d -m 755 $(APP_FOLDER)
install -p -D -m 755 files/metadata.yaml $(APP_FOLDER)
install -d -m 755 $(HELM_FOLDER)
install -p -D -m 755 helm-charts/*.tgz $(HELM_FOLDER)
install -d -m 755 $(ARMADA_FOLDER)
install -p -D -m 755 manifests/*.yaml $(ARMADA_FOLDER)

View File

@ -0,0 +1 @@
3.0 (quilt)

View File

@ -0,0 +1,3 @@
usr/lib/helm/* /usr/lib/helm
usr/lib/armada/* /usr/lib/armada
usr/lib/application/* /usr/lib/application

View File

@ -0,0 +1,7 @@
---
debname: stx-sdo-helm
debver: 1.0-1
src_path: stx-sdo-helm
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true