From 170d94b0a8fde81800705e5db04938a283f39a6a Mon Sep 17 00:00:00 2001
From: Petr OspalĂ˝
Date: Thu, 20 Dec 2018 16:40:58 +0100
Subject: Add the package.sh with a template
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
It can be used to distribution of a project via tars.
What is part of the package is defined in package.conf
Issue-ID: OOM-1551
Change-Id: I8f5509bfb37d5cad510c0c151d49f6944fc6511c
Signed-off-by: Petr OspalĂ˝
---
package.conf | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 package.conf
(limited to 'package.conf')
diff --git a/package.conf b/package.conf
new file mode 100644
index 00000000..1141798b
--- /dev/null
+++ b/package.conf
@@ -0,0 +1,71 @@
+# For the packaging script it is expected that all artifacts are present on local file system
+# (e.g. they can be mounted) Downloading stuff from internet is currently not supported.
+# Furthermore we don't want to replicate content of our static data_lists for download in there
+# and those are downloaded before this packaging script is supposed to be run.
+# Therefore we can limit number of artifacts to be added into packages just to couple of items.
+
+###########################
+# Project specific params #
+###########################
+
+# Final package name will be ${SOFTWARE_PACKAGE_BASENAME}-${PROJECT_NAME}-${PROJECT_VERSION}.tar
+SOFTWARE_PACKAGE_BASENAME="onap-offline"
+
+########################
+# Helm charts handling #
+########################
+
+# directory with helm charts
+HELM_CHARTS_DIR="/root/oom"
+
+
+###################
+# Packages addons #
+###################
+
+# in there we define array of files/directories to be added into particular packages
+# SW_PACKAGE_ADDONS are offline installer specific entries which are supposed to be inserted
+# into ./ansible/application directory which is the only place where installer expects SW addons
+# if directory is specified, whole dir will be copied into ./ansible/application inc. subdirs
+# if file is specified it will be just copied into ./ansible/application folder.
+#
+SW_PACKAGE_ADDONS=(
+ '/root/ansible/application/onap-me-patch-role'
+ '/root/ansible/application/application_configuration.yml'
+)
+
+# following array contains directories and files from where offline installer can get required artifacts
+# following binaries and files are expected:
+# /downloads ... path to directory with application binaries (e.g. rancher, kubectl, jq, helm)
+# /git-repo ... path to directory with git repos
+# /http ... path to directory with http files
+# /offline_data ... path to directory with infra specific docker images
+# /pkg ... path to directory with rpm/deb packages
+# /nexus_data.tar ... path to tar file with collected nexus blobs (output of different script)
+#
+# alternatively and if all above is available just ./resources folder with contain all of those might be used
+# /resources
+#
+
+EXTERNAL_BINARIES_PACKAGE_ADDONS=(
+ '/root/resources'
+)
+#EXTERNAL_BINARIES_PACKAGE_ADDONS=(
+# '/root/resources/downloads'
+# '/root/resources/git-repo'
+# '/root/resources/http'
+# '/root/resources/offline_data'
+# '/root/resources/pkg'
+# '/root/resources/nexus_data.tar'
+#)
+
+# this param should be set to true if additional application package is supposed to be created
+#
+PREPARE_AUX_PACKAGE="true"
+
+# tar files with additional application images supposed to be inserted into nexus during runtime are expected
+#
+#AUX_BINARIES_PACKAGE_ADDONS=(
+# '/root/resource_aux/aaa-component-0.0.1.tar'
+# '/root/resource_aux/xyz-component-0.0.1.tar'
+#)
--
cgit 1.2.3-korg