From cd71553493b4778695ad317416e4ae07fa63b618 Mon Sep 17 00:00:00 2001 From: Tracey Bogue Date: Wed, 3 Nov 2021 07:11:48 -0500 Subject: [PATCH] Add Debian packaging for monitor app Create Debian packages for monitor-helm, monitor-helm-elastic and stx-monitor-helm packages. Story: 2009101 Task: 43838 Signed-off-by: Tracey Bogue Change-Id: I454c69618975324feec4834ea065c0025a9381d1 --- debian_pkg_dirs | 3 ++ .../debian/deb_folder/changelog | 5 ++ .../debian/deb_folder/control | 18 +++++++ .../debian/deb_folder/copyright | 41 ++++++++++++++++ .../deb_folder/monitor-helm-elastic.install | 1 + monitor-helm-elastic/debian/deb_folder/rules | 42 +++++++++++++++++ .../debian/deb_folder/source/format | 1 + monitor-helm-elastic/debian/dl_hook | 25 ++++++++++ monitor-helm-elastic/debian/meta_data.yaml | 7 +++ monitor-helm/debian/deb_folder/changelog | 5 ++ monitor-helm/debian/deb_folder/control | 17 +++++++ monitor-helm/debian/deb_folder/copyright | 41 ++++++++++++++++ .../debian/deb_folder/monitor-helm.install | 1 + monitor-helm/debian/deb_folder/rules | 47 +++++++++++++++++++ monitor-helm/debian/deb_folder/source/format | 1 + monitor-helm/debian/dl_hook | 25 ++++++++++ monitor-helm/debian/meta_data.yaml | 7 +++ stx-monitor-helm/debian/deb_folder/changelog | 5 ++ stx-monitor-helm/debian/deb_folder/control | 17 +++++++ stx-monitor-helm/debian/deb_folder/copyright | 41 ++++++++++++++++ stx-monitor-helm/debian/deb_folder/rules | 18 +++++++ .../debian/deb_folder/source/format | 1 + .../deb_folder/stx-monitor-helm.install | 2 + stx-monitor-helm/debian/meta_data.yaml | 7 +++ 24 files changed, 378 insertions(+) create mode 100644 debian_pkg_dirs create mode 100644 monitor-helm-elastic/debian/deb_folder/changelog create mode 100644 monitor-helm-elastic/debian/deb_folder/control create mode 100644 monitor-helm-elastic/debian/deb_folder/copyright create mode 100644 monitor-helm-elastic/debian/deb_folder/monitor-helm-elastic.install create mode 100755 monitor-helm-elastic/debian/deb_folder/rules create mode 100644 monitor-helm-elastic/debian/deb_folder/source/format create mode 100755 monitor-helm-elastic/debian/dl_hook create mode 100644 monitor-helm-elastic/debian/meta_data.yaml create mode 100644 monitor-helm/debian/deb_folder/changelog create mode 100644 monitor-helm/debian/deb_folder/control create mode 100644 monitor-helm/debian/deb_folder/copyright create mode 100644 monitor-helm/debian/deb_folder/monitor-helm.install create mode 100755 monitor-helm/debian/deb_folder/rules create mode 100644 monitor-helm/debian/deb_folder/source/format create mode 100755 monitor-helm/debian/dl_hook create mode 100644 monitor-helm/debian/meta_data.yaml create mode 100644 stx-monitor-helm/debian/deb_folder/changelog create mode 100644 stx-monitor-helm/debian/deb_folder/control create mode 100644 stx-monitor-helm/debian/deb_folder/copyright create mode 100755 stx-monitor-helm/debian/deb_folder/rules create mode 100644 stx-monitor-helm/debian/deb_folder/source/format create mode 100644 stx-monitor-helm/debian/deb_folder/stx-monitor-helm.install create mode 100644 stx-monitor-helm/debian/meta_data.yaml diff --git a/debian_pkg_dirs b/debian_pkg_dirs new file mode 100644 index 0000000..6894369 --- /dev/null +++ b/debian_pkg_dirs @@ -0,0 +1,3 @@ +monitor-helm +monitor-helm-elastic +stx-monitor-helm diff --git a/monitor-helm-elastic/debian/deb_folder/changelog b/monitor-helm-elastic/debian/deb_folder/changelog new file mode 100644 index 0000000..6218bd8 --- /dev/null +++ b/monitor-helm-elastic/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +monitor-helm-elastic (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Tracey Bogue Tue, 2 Nov 2021 14:06:42 +0000 diff --git a/monitor-helm-elastic/debian/deb_folder/control b/monitor-helm-elastic/debian/deb_folder/control new file mode 100644 index 0000000..324d7ae --- /dev/null +++ b/monitor-helm-elastic/debian/deb_folder/control @@ -0,0 +1,18 @@ +Source: monitor-helm-elastic +Section: libs +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13), + chartmuseum, + helm, + procps +Standards-Version: 4.5.1 +Homepage: https://www.starlingx.io + +Package: monitor-helm-elastic +Section: libs +Architecture: any +Depends: ${misc:Depends} +Description: StarlingX Monitor Elastic Helm Charts + This package contains elastic helm charts for the monitor + application. diff --git a/monitor-helm-elastic/debian/deb_folder/copyright b/monitor-helm-elastic/debian/deb_folder/copyright new file mode 100644 index 0000000..a4d9cd2 --- /dev/null +++ b/monitor-helm-elastic/debian/deb_folder/copyright @@ -0,0 +1,41 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: monitor-helm-elastic +Source: https://opendev.org/starlingx/monitor-armada-app/ + +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'. diff --git a/monitor-helm-elastic/debian/deb_folder/monitor-helm-elastic.install b/monitor-helm-elastic/debian/deb_folder/monitor-helm-elastic.install new file mode 100644 index 0000000..8a0c6de --- /dev/null +++ b/monitor-helm-elastic/debian/deb_folder/monitor-helm-elastic.install @@ -0,0 +1 @@ +usr/lib/helm/* diff --git a/monitor-helm-elastic/debian/deb_folder/rules b/monitor-helm-elastic/debian/deb_folder/rules new file mode 100755 index 0000000..c4f72c5 --- /dev/null +++ b/monitor-helm-elastic/debian/deb_folder/rules @@ -0,0 +1,42 @@ +#!/usr/bin/make -f +# export DH_VERBOSE = 1 + +export ROOT = debian/tmp +export HELM_FOLDER = $(ROOT)/usr/lib/helm + +%: + dh $@ + +override_dh_auto_build: + # Move the source files from the extracted root directory to build root. + mv helm-charts-elastic/* . + # Apply the openstack-helm patches. + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0001-add-makefile.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0002-use-oss-image.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0003-set-initial-masters-to-master-0.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0004-Update-Elastic-Apps-to-7.6.0-Releases.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0005-readiness-probe-enhancements.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0006-Metricbeat-nodeSelector-and-tolerations-config.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0007-Add-command-and-args-parameters-to-beats-and-logstash.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0008-Add-updateStrategy-parameter-to-beats-config.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0010-Fix-esConfig-checksum-annotation.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0011-Fix-Elasticsearch-readiness-probe-http-endpoint.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0012-Add-logstash-ingress.patch + # 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) diff --git a/monitor-helm-elastic/debian/deb_folder/source/format b/monitor-helm-elastic/debian/deb_folder/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/monitor-helm-elastic/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/monitor-helm-elastic/debian/dl_hook b/monitor-helm-elastic/debian/dl_hook new file mode 100755 index 0000000..268b521 --- /dev/null +++ b/monitor-helm-elastic/debian/dl_hook @@ -0,0 +1,25 @@ +#!/bin/bash +set -x + +PKG_BUILD_NAME=$1 +PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME}) +PKG_DIR="monitor-helm-elastic" +STX_BASE=$(realpath ${MY_REPO}/stx) +SRC=$(realpath ${STX_BASE}/monitor-armada-app/${PKG_DIR}) + +mkdir -p ${PKG_BUILD_ROOT} +pushd ${PKG_BUILD_ROOT} + +# Local mirror workaround until CGCS_BASE mirror is supported. +STX_MIRROR=$(realpath "/import/mirrors/starlingx") + +# Download monitor helm elastic chart source package. +ELASTIC_PKG="helm-charts-elastic-945017287598479ba8653d9baf3ff26f7fe31e50.tar.gz" +ELASTIC_SRC_PATH=$(realpath ${STX_MIRROR}/downloads/${ELASTIC_PKG}) +cp ${ELASTIC_SRC_PATH} ${PKG_BUILD_ROOT} + +# Extract the monitor helm elastic chart tar file. +tar xfzvv ${ELASTIC_PKG} + +# Copy source files to the build directory. +cp -pr ${SRC}/files/* ${PKG_BUILD_ROOT} diff --git a/monitor-helm-elastic/debian/meta_data.yaml b/monitor-helm-elastic/debian/meta_data.yaml new file mode 100644 index 0000000..6975339 --- /dev/null +++ b/monitor-helm-elastic/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: monitor-helm-elastic +debver: 1.0-1 +dl_hook: dl_hook +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/monitor-helm/debian/deb_folder/changelog b/monitor-helm/debian/deb_folder/changelog new file mode 100644 index 0000000..c4385cd --- /dev/null +++ b/monitor-helm/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +monitor-helm (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Tracey Bogue Tue, 2 Nov 2021 13:37:42 +0000 diff --git a/monitor-helm/debian/deb_folder/control b/monitor-helm/debian/deb_folder/control new file mode 100644 index 0000000..22ba81d --- /dev/null +++ b/monitor-helm/debian/deb_folder/control @@ -0,0 +1,17 @@ +Source: monitor-helm +Section: libs +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13), + chartmuseum, + helm, + procps +Standards-Version: 4.5.1 +Homepage: https://www.starlingx.io + +Package: monitor-helm +Section: libs +Architecture: any +Depends: ${misc:Depends} +Description: StarlingX Monitor Helm Charts + This package contains helm charts for the monitor application. diff --git a/monitor-helm/debian/deb_folder/copyright b/monitor-helm/debian/deb_folder/copyright new file mode 100644 index 0000000..df7271a --- /dev/null +++ b/monitor-helm/debian/deb_folder/copyright @@ -0,0 +1,41 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: monitor-helm +Source: https://opendev.org/starlingx/monitor-armada-app/ + +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'. diff --git a/monitor-helm/debian/deb_folder/monitor-helm.install b/monitor-helm/debian/deb_folder/monitor-helm.install new file mode 100644 index 0000000..8a0c6de --- /dev/null +++ b/monitor-helm/debian/deb_folder/monitor-helm.install @@ -0,0 +1 @@ +usr/lib/helm/* diff --git a/monitor-helm/debian/deb_folder/rules b/monitor-helm/debian/deb_folder/rules new file mode 100755 index 0000000..bad0564 --- /dev/null +++ b/monitor-helm/debian/deb_folder/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f +# export DH_VERBOSE = 1 + +export ROOT = debian/tmp +export HELM_FOLDER = $(ROOT)/usr/lib/helm + +%: + dh $@ + +override_dh_auto_build: + # Move the source files from the extracted root directory to build root. + mv helm-charts/* . + # Apply the openstack-helm patches. + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0001-Add-Makefile-for-helm-charts.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0002-kibana-workaround-checksum-for-configmap.yaml.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0003-helm-chart-changes-for-stx-monitor.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0004-ipv6-helm-chart-changes.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0005-decouple-config.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0006-add-system-info.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0007-three-masters.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0008-Update-stx-monitor-for-kubernetes-API-1.16.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0009-add-curator-as-of-2019-10-10.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0010-Update-kube-state-metrics-1.8.0-to-commit-09daf19.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0011-update-init-container-env-to-include-node-name.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0012-Add-imagePullSecrets.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0013-removed-unused-images.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0014-Add-rbac-replicasets-to-apps-apigroup-commit-1717e2d.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0015-script-flexibility.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0016-use-main-container-image-for-initcontainer.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0017-stable-nginx-ingress-allow-nodePort-for-tcp-udp-serv.patch + patch --no-backup-if-mismatch --prefix=/tmp/junk -p1 < 0018-Update-nginx-ingress-chart-for-Helm-v3.patch + # 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. + cd stable && make kube-state-metrics + cd stable && make nginx-ingress + cd stable && make elasticsearch-curator + # 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 stable/*.tgz $(HELM_FOLDER) diff --git a/monitor-helm/debian/deb_folder/source/format b/monitor-helm/debian/deb_folder/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/monitor-helm/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/monitor-helm/debian/dl_hook b/monitor-helm/debian/dl_hook new file mode 100755 index 0000000..45eb7e6 --- /dev/null +++ b/monitor-helm/debian/dl_hook @@ -0,0 +1,25 @@ +#!/bin/bash +set -x + +PKG_BUILD_NAME=$1 +PKG_BUILD_ROOT=$(realpath `pwd`/${PKG_BUILD_NAME}) +PKG_DIR="monitor-helm" +STX_BASE=$(realpath ${MY_REPO}/stx) +SRC=$(realpath ${STX_BASE}/monitor-armada-app/${PKG_DIR}) + +mkdir -p ${PKG_BUILD_ROOT} +pushd ${PKG_BUILD_ROOT} + +# Local mirror workaround until CGCS_BASE mirror is supported. +STX_MIRROR=$(realpath "/import/mirrors/starlingx") + +# Download monitor helm chart source package. +MON_PKG="helm-charts-92b6289ae93816717a8453cfe62bad51cbdb8ad0.tar.gz" +MON_SRC_PATH=$(realpath ${STX_MIRROR}/downloads/${MON_PKG}) +cp ${MON_SRC_PATH} ${PKG_BUILD_ROOT} + +# Extract the monitor helm chart tar file. +tar xfzvv ${MON_PKG} + +# Copy source files to the build directory. +cp -pr ${SRC}/files/* ${PKG_BUILD_ROOT} diff --git a/monitor-helm/debian/meta_data.yaml b/monitor-helm/debian/meta_data.yaml new file mode 100644 index 0000000..81b78cd --- /dev/null +++ b/monitor-helm/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: monitor-helm +debver: 1.0-1 +dl_hook: dl_hook +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/stx-monitor-helm/debian/deb_folder/changelog b/stx-monitor-helm/debian/deb_folder/changelog new file mode 100644 index 0000000..0f43612 --- /dev/null +++ b/stx-monitor-helm/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +stx-monitor-helm (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Tracey Bogue Tue, 2 Nov 2021 14:26:42 +0000 diff --git a/stx-monitor-helm/debian/deb_folder/control b/stx-monitor-helm/debian/deb_folder/control new file mode 100644 index 0000000..11c5cc5 --- /dev/null +++ b/stx-monitor-helm/debian/deb_folder/control @@ -0,0 +1,17 @@ +Source: stx-monitor-helm +Section: libs +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13), + monitor-helm, + monitor-helm-elastic +Standards-Version: 4.5.1 +Homepage: https://www.starlingx.io + +Package: stx-monitor-helm +Section: libs +Architecture: any +Depends: ${misc:Depends}, monitor-helm, monitor-helm-elastic +Description: StarlingX Monitor Armada Helm Charts + This package contains Armada helm charts for the monitor + application. diff --git a/stx-monitor-helm/debian/deb_folder/copyright b/stx-monitor-helm/debian/deb_folder/copyright new file mode 100644 index 0000000..9f95af7 --- /dev/null +++ b/stx-monitor-helm/debian/deb_folder/copyright @@ -0,0 +1,41 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: stx-monitor-helm +Source: https://opendev.org/starlingx/monitor-armada-app/ + +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'. diff --git a/stx-monitor-helm/debian/deb_folder/rules b/stx-monitor-helm/debian/deb_folder/rules new file mode 100755 index 0000000..928d261 --- /dev/null +++ b/stx-monitor-helm/debian/deb_folder/rules @@ -0,0 +1,18 @@ +#!/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 + +%: + dh $@ + +override_dh_auto_build: + +override_dh_auto_install: + # Install the app files. + install -d -m 755 $(ARMADA_FOLDER) + install -p -D -m 755 manifests/*.yaml $(ARMADA_FOLDER) + install -d -m 755 $(APP_FOLDER) + install -p -D -m 755 files/metadata.yaml $(APP_FOLDER) diff --git a/stx-monitor-helm/debian/deb_folder/source/format b/stx-monitor-helm/debian/deb_folder/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/stx-monitor-helm/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/stx-monitor-helm/debian/deb_folder/stx-monitor-helm.install b/stx-monitor-helm/debian/deb_folder/stx-monitor-helm.install new file mode 100644 index 0000000..3ce6aea --- /dev/null +++ b/stx-monitor-helm/debian/deb_folder/stx-monitor-helm.install @@ -0,0 +1,2 @@ +usr/lib/application/* +usr/lib/armada/* diff --git a/stx-monitor-helm/debian/meta_data.yaml b/stx-monitor-helm/debian/meta_data.yaml new file mode 100644 index 0000000..835c048 --- /dev/null +++ b/stx-monitor-helm/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: stx-monitor-helm +debver: 1.0-1 +src_path: stx-monitor-helm +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true