From 1d902342d49dacb2e63a55d1cd17ec4a737fec25 Mon Sep 17 00:00:00 2001 From: Tomáš Levora Date: Tue, 5 Feb 2019 10:01:43 +0100 Subject: Adding PyPI repository and packages to Nexus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This update for building of Nexus repository for offline installer adds autoconfiguration of pipy repository and uploading pypi packages to it based on related list Issue-ID: OOM-1619 Change-Id: Id49aad2936e7e56848500c47a43a16f1f58db8e3 Signed-off-by: Tomáš Levora --- doc/BuildGuide.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/BuildGuide.rst b/doc/BuildGuide.rst index 1c854978..6e36b253 100755 --- a/doc/BuildGuide.rst +++ b/doc/BuildGuide.rst @@ -22,6 +22,7 @@ More-over following sw packages has to be installed: * for the Download artifacts for offline installer (Part 2) only - createrepo + - dpkg-dev - python2-pip * for the Download artifacts for offline installer (Part 2) and the Populate local nexus (Part 3) @@ -32,6 +33,9 @@ More-over following sw packages has to be installed: * for the Download artifacts for offline installer (Part 2) and for the Application helm charts preparation and patching (Part 4) - patch +* for the Populate local nexus (Part 3) + - twine + This can be achieved by following commands: :: @@ -47,6 +51,8 @@ This can be achieved by following commands: # install following packages yum install -y expect nodejs git wget createrepo python2-pip jq patch + pip install twine + # install docker curl https://releases.rancher.com/install-docker/17.03.sh | sh @@ -215,11 +221,15 @@ There are mandatory parameters need to be set in configuration file: +------------------------------+------------------------------------------------------------------------------------------+ | NXS\_SRC\_NPM\_DIR | resource directory of npm packages | +------------------------------+------------------------------------------------------------------------------------------+ +| NXS\_SRC\_PYPI\_DIR | resource directory of npm packages | ++------------------------------+------------------------------------------------------------------------------------------+ | NXS\_DOCKER\_IMG\_LIST | list of docker images to be pushed to Nexus repository | +------------------------------+------------------------------------------------------------------------------------------+ | NXS\_DOCKER\_WO\_LIST | list of docker images which uses default repository | +------------------------------+------------------------------------------------------------------------------------------+ | NXS\_NPM\_LIST | list of npm packages to be published to Nexus repository | ++-------------------------------------------------------------------------------------------------------------------------+ +| NXS\_PYPI\_LIST | list of pypi packages to be published to Nexus repository | +------------------------------+------------------------------------------------------------------------------------------+ | NEXUS\_DATA\_TAR | target tarball of Nexus data path/name | +------------------------------+------------------------------------------------------------------------------------------+ @@ -245,6 +255,10 @@ Example of the configuration file: NXS_DOCKER_IMG_LIST="/tmp/onap-me-data_lists/docker_img.list" NXS_DOCKER_WO_LIST="/tmp/onap-me-data_lists/docker_no_registry.list" NXS_NPM_LIST="/tmp/onap-offline/bash/tools/data_list/npm_list.txt" + NXS_SRC_PYPI_DIR="/tmp/onap-offline/resources/offline_data/pypi" + NXS_DOCKER_IMG_LIST="/tmp/onap-me-data_lists/docker_img.list" + NXS_DOCKER_WO_LIST="/tmp/onap-me-data_lists/docker_no_registry.list" + NXS_NPM_LIST="/tmp/onap-offline/bash/tools/data_list/onap_3.0.0-npm.list" NEXUS_DATA_TAR="/root/nexus_data.tar" NEXUS_DATA_DIR="/tmp/onap-offline/resources/nexus_data" NEXUS_IMAGE="/tmp/onap-offline/resources/offline_data/docker_images_infra/sonatype_nexus3_latest.tar" -- cgit 1.2.3-korg