From feaa6b490bc0bb4c5cd08a8fce47f78f169c1dff Mon Sep 17 00:00:00 2001 From: Tomáš Levora Date: Wed, 29 May 2019 09:45:29 +0200 Subject: Remove tag support from nexus blob build script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove tag support from build script for Nexus blob to simplify the configuration and the be align with lists naming for Dublin as described in OOM-1881 Issue-ID: OOM-1882 Change-Id: I009fa35830b44454530a7b7e565d23d99af99df8 Signed-off-by: Tomáš Levora --- build/build_nexus_blob.sh | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'build/build_nexus_blob.sh') diff --git a/build/build_nexus_blob.sh b/build/build_nexus_blob.sh index 00641cf4..f3edb482 100755 --- a/build/build_nexus_blob.sh +++ b/build/build_nexus_blob.sh @@ -20,7 +20,7 @@ ### This script prepares Nexus repositories data blobs for ONAP -## The script requires following dependencies are installed: nodejs, jq, docker +## The script requires following dependencies are installed: nodejs, jq, docker, twine ## All required resources are expected in the upper directory created during ## download procedure as DATA_DIR or in the directory given as --input-directory ## All lists used must be in project data_lists directory or in the directory given @@ -58,10 +58,9 @@ NEXUS_DATA_DIR="${DATA_DIR}/nexus_data" LISTS_DIR="${LOCAL_PATH}/data_lists" usage () { - echo " Example usage: build_nexus_blob.sh -t --input-directory --output-directory + echo " Example usage: build_nexus_blob.sh --input-directory --output-directory --resource-list-directory - -t | --tag release tag, taken from available on git or placed by data generating script (mandatory) must follow scheme onap_ -i | --input-directory directory containing file needed to create nexus blob. The structure of this directory must organized as described in build guide -o | --output-directory -rl | --resource-list-directory directory with files containing docker, pypi and npm lists @@ -71,9 +70,6 @@ usage () { while [ "$1" != "" ]; do case $1 in - -t | --tag ) shift - TAG=$1 - ;; -i | --input-directory ) shift DATA_DIR=$1 ;; @@ -90,22 +86,15 @@ while [ "$1" != "" ]; do shift done - -# exit if no tag given -if [ -z ${TAG} ]; then - usage - exit 1 -fi - # Setup directories with resources for docker, npm and pypi NXS_SRC_DOCKER_IMG_DIR="${DATA_DIR}/offline_data/docker_images_for_nexus" NXS_SRC_NPM_DIR="${DATA_DIR}/offline_data/npm_tar" NXS_SRC_PYPI_DIR="${DATA_DIR}/offline_data/pypi" -# Setup specific resources list based on the tag provided -NXS_DOCKER_IMG_LIST="${LISTS_DIR}/${TAG}-docker_images.list" -NXS_NPM_LIST="${LISTS_DIR}/$(sed 's/.$/x/' <<< ${TAG})-npm.list" -NXS_PYPI_LIST="${LISTS_DIR}/$(sed 's/.$/x/' <<< ${TAG})-pip_packages.list" +# Setup specific resources lists +NXS_DOCKER_IMG_LIST="${LISTS_DIR}/onap_docker_images.list" +NXS_NPM_LIST="${LISTS_DIR}/onap_npm.list" +NXS_PYPI_LIST="${LISTS_DIR}/onap_pip_packages.list" # Setup Nexus image used for build and install infra INFRA_LIST="${LISTS_DIR}/infra_docker_images.list" @@ -340,4 +329,3 @@ npm config set registry "https://registry.npmjs.org" echo "Nexus blob is built" exit 0 - -- cgit 1.2.3-korg