From 92477974b68c7638a43ffc869e3ea9fb854b3534 Mon Sep 17 00:00:00 2001 From: Denis Kasanic Date: Mon, 11 Nov 2019 15:47:04 +0100 Subject: Fix packaging offline-installer Fix typos in Build and Install documentation Fix using relative paths in args for package.py Fix missing hosts.yml & application_configuration.yml in sw_package Change default build-version of packaging to empty as used in docs Give possibility to specify own inventory file to package in package.py Issue-ID: OOM-1994 Issue-ID: OOM-2197 Issue-ID: OOM-2158 Signed-off-by: Denis Kasanic Change-Id: I76598fb71a42ada1a71c9905ef2d32bc03d8f71c --- docs/BuildGuide.rst | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'docs/BuildGuide.rst') diff --git a/docs/BuildGuide.rst b/docs/BuildGuide.rst index 27c0835e..d0a558ba 100644 --- a/docs/BuildGuide.rst +++ b/docs/BuildGuide.rst @@ -128,14 +128,18 @@ so one might try following command to download most of the required artifacts in :: # following arguments are provided - # all data lists are taken in ./build/data_lists/ folder + # all data lists are taken from ./build/data_lists/ folder # all resources will be stored in expected folder structure within ../resources folder ./build/download/download.py --docker ./build/data_lists/infra_docker_images.list ../resources/offline_data/docker_images_infra \ - --docker ./build/data_lists/rke_docker_images.list \ + --http ./build/data_lists/infra_bin_utils.list ../resources/downloads + + # following docker images does not neccessary need to be stored under resources as they load into repository in next part + # if second argument for --docker is not present, images are just pulled and cached. + # Warning: script must be run twice separately, for more details run download.py --help + ./build/download/download.py --docker ./build/data_lists/rke_docker_images.list \ --docker ./build/data_lists/k8s_docker_images.list \ --docker ./build/data_lists/onap_docker_images.list \ - --http ./build/data_lists/infra_bin_utils.list ../resources/downloads Alternatively, step-by-step procedure is described in Appendix 1. @@ -148,7 +152,7 @@ Part 3. Populate local nexus Prerequisites: - All data lists and resources which are pushed to local nexus repository are available -- Following ports are not occupied buy another service: 80, 8081, 8082, 10001 +- Following ports are not occupied by another service: 80, 8081, 8082, 10001 - There's no docker container called "nexus" .. note:: In case you skipped the Part 2 for the artifacts download, please ensure that the onap docker images are cached and copy of resources data are untarred in *./onap-offline/../resources/* @@ -185,13 +189,13 @@ From onap-offline directory run: :: - ./build/package.py --build_version "" --application-repository_reference --output-dir --resources-directory + ./build/package.py --build-version --application-repository_reference --output-dir --resources-directory For example: :: - ./build/package.py https://gerrit.onap.org/r/oom --build_version "" --application-repository_reference master --output-dir /tmp/packages --resources-directory /tmp/resources + ./build/package.py https://gerrit.onap.org/r/oom --application-repository_reference master --output-dir /tmp/packages --resources-directory /tmp/resources In the target directory you should find tar files: -- cgit 1.2.3-korg