integ/kubernetes/armada-helm-toolkit/debian/deb_folder/rules
Daniel Safta db16f48a95 Add debian package for armada
Create debian package structure
for armada and armada-helm-toolkit.

Story: 2009221
Task: 43917
Change-Id: Ie1177d50b1c22239be18c109129308d13d75ba28
Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
2021-11-11 16:28:11 +02:00

24 lines
634 B
Makefile

#!/usr/bin/make -f
export ROOT = debian/armada-helm-toolkit
export APP_FOLDER = $(ROOT)/usr/lib/helm
export APP_NAME = armada-helm-toolkit
%:
dh $@
override_dh_auto_build:
# Host a server for the charts
chartmuseum --debug --port=8879 --context-path='/charts' --storage="local" --storage-local-rootdir="." &
sleep 2
helm repo add local http://localhost:8879/charts
# Make the charts. These produce tgz files
make helm-toolkit
pkill chartmuseum
override_dh_auto_install:
# Install the app tar file.
install -d -m 755 $(APP_FOLDER)
install -p -D -m 755 helm-toolkit-0.1.0.tgz $(APP_FOLDER)/armada-helm-toolkit-0.1.0.tgz