Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | .. Copyright 2019 Samsung Electronics Co., Ltd. |
| 4 | |
| 5 | OOM ONAP Offline Installer Package Build Guide |
| 6 | ============================================================= |
| 7 | |
| 8 | This document is describing procedure for building offline installer packages. It is supposed to be triggered on server with internet connectivity and will download all artifacts required for ONAP deployment based on our static lists. The server used for the procedure in this guide is preferred to be separate build server. |
| 9 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 10 | Procedure was completely tested on RHEL 7.6 as it’s tested target platform, however with small adaptations it should be applicable also for other platforms. |
| 11 | Some discrepancies when Centos 7.6 is used are described below as well. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 12 | |
| 13 | Part 1. Preparations |
| 14 | -------------------- |
| 15 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 16 | We assume that procedure is executed on RHEL 7.6 server with \~300G disc space, 16G+ RAM and internet connectivity |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 17 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 18 | Some additional sw packages are required by ONAP Offline platform building tooling. in order to install them |
| 19 | following repos has to be configured for RHEL 7.6 platform. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 20 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 21 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 22 | |
| 23 | :: |
| 24 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 25 | ############ |
| 26 | # RHEL 7.6 # |
| 27 | ############ |
| 28 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 29 | # Register server |
| 30 | subscription-manager register --username <rhel licence name> --password <password> --auto-attach |
| 31 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 32 | # required by special centos docker recommended by ONAP |
| 33 | yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 34 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 35 | # required by docker dependencies i.e. docker-selinux |
| 36 | subscription-manager repos --enable=rhel-7-server-extras-rpms |
| 37 | |
| 38 | # epel is required by npm within blob build |
| 39 | rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 40 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 41 | Alternatively |
| 42 | |
| 43 | :: |
| 44 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 45 | ToDo: newer download scripts needs to be verified on Centos with ONAP Dublin |
| 46 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 47 | ############## |
| 48 | # Centos 7.6 # |
| 49 | ############## |
| 50 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 51 | # required by special centos docker recommended by ONAP |
| 52 | yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
| 53 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 54 | # enable epel repo for npm and jq |
| 55 | yum install -y epel-release |
| 56 | |
| 57 | Subsequent steps are the same on both platforms: |
| 58 | |
| 59 | :: |
| 60 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 61 | # install following packages |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 62 | yum install -y docker-ce-18.09.5 python-pip git createrepo expect nodejs npm jq |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 63 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 64 | # twine package is needed by nexus blob build script |
Tomáš Levora | 1d90234 | 2019-02-05 10:01:43 +0100 | [diff] [blame] | 65 | pip install twine |
| 66 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 67 | # docker daemon must be running on host |
| 68 | service docker start |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 69 | |
| 70 | Then it is necessary to clone all installer and build related repositories and prepare the directory structure. |
| 71 | |
| 72 | :: |
| 73 | |
| 74 | # prepare the onap build directory structure |
| 75 | cd /tmp |
Bartek Grzybowski | c241f2f | 2019-03-14 09:38:52 +0100 | [diff] [blame] | 76 | git clone https://gerrit.onap.org/r/oom/offline-installer onap-offline |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 77 | cd onap-offline |
| 78 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 79 | # install required pip packages for download scripts |
| 80 | pip install -r ./build/download/requirements.txt |
| 81 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 82 | Part 2. Download artifacts for offline installer |
| 83 | ------------------------------------------------ |
| 84 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 85 | .. note:: Skip this step if you have already all necessary resources and continue with Part 3. Populate local nexus |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 86 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 87 | It's possible to download all artifacts in single ./download.py execution. Recently we improved reliability of download scripts |
| 88 | so one might try following command to download most of the required artifacts in single shot. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 89 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 90 | **Step1 - download wrapper script execution** |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 91 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 92 | :: |
| 93 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 94 | # following arguments are provided |
| 95 | # all data lists are taken in ./build/data_lists/ folder |
| 96 | # all resources will be stored in expected folder structure within ../resources folder |
| 97 | # for more details refer to Appendix 1. |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 98 | |
Milan Verespej | d85b2d7 | 2019-06-05 13:58:38 +0200 | [diff] [blame] | 99 | ./build/download/download.py --docker ./build/data_lists/infra_docker_images.list ../resources/offline_data/docker_images_infra \ |
| 100 | --docker ./build/data_lists/rke_docker_images.list ../resources/offline_data/docker_images_for_nexus \ |
| 101 | --docker ./build/data_lists/onap_docker_images.list ../resources/offline_data/docker_images_for_nexus \ |
| 102 | --git ./build/data_lists/onap_git_repos.list ../resources/git-repo \ |
| 103 | --npm ./build/data_lists/onap_npm.list ../resources/offline_data/npm_tar \ |
| 104 | --rpm ./build/data_lists/onap_rpm.list ../resources/pkg/rhel \ |
Milan Verespej | d0f7620 | 2019-06-10 10:27:20 +0200 | [diff] [blame] | 105 | --pypi ./build/data_lists/onap_pip_packages.list ../resources/offline_data/pypi \ |
| 106 | --http ./build/data_lists/infra_bin_utils.list ../resources/downloads |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 107 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 108 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 109 | Alternatively, step-by-step procedure is described in Appendix 1. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 110 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 111 | Following steps are still required and are not supported by current version of download.py script. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 112 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 113 | **Step 2 - Building own dns image** |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 114 | |
| 115 | :: |
| 116 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 117 | # We are building our own dns image within our offline infrastructure |
| 118 | ./build/creating_data/create_nginx_image/01create-image.sh /tmp/resources/offline_data/docker_images_infra |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 119 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 120 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 121 | **Step 3 - Http files** |
| 122 | |
| 123 | ToDo: complete and verified list of http files will come just during/after vFWCL testcase |
| 124 | |
Tomáš Levora | f6bd937 | 2019-06-14 10:54:39 +0200 | [diff] [blame] | 125 | **Step 4 - Create repo** |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 126 | |
| 127 | :: |
| 128 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 129 | createrepo ../resources/pkg/rhel |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 130 | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 131 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 132 | This concludes SW download part required for ONAP offline platform creating. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 133 | |
| 134 | Part 3. Populate local nexus |
| 135 | ---------------------------- |
| 136 | |
| 137 | Prerequisites: |
| 138 | |
| 139 | - All data lists and resources which are pushed to local nexus repository are available |
| 140 | - Following ports are not occupied buy another service: 80, 8081, 8082, 10001 |
| 141 | - There's no docker container called "nexus" |
| 142 | |
eronkeo | 8457e02 | 2019-04-24 15:18:18 +0000 | [diff] [blame] | 143 | .. note:: In case you skipped the Part 2 for the artifacts download, please ensure that the copy of resources data are untarred in *./onap-offline/../resources/* |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 144 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 145 | Whole nexus blob data will be created by running script build_nexus_blob.sh. |
Tomáš Levora | 8d272bd | 2019-03-12 15:06:35 +0100 | [diff] [blame] | 146 | It will load the listed docker images, run the Nexus, configure it as npm, pypi |
| 147 | and docker repositories. Then it will push all listed npm and pypi packages and |
| 148 | docker images to the repositories. After all is done the repository container |
| 149 | is stopped. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 150 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 151 | .. note:: build_nexus_blob.sh script is using docker, npm and pip data lists for building nexus blob. Unfortunatelly we now have 2 different docker data lists (RKE & ONAP). So we need to merge them as visible from following snippet. This problem will be fixed in OOM-1890 |
| 152 | |
Tomáš Levora | 8d272bd | 2019-03-12 15:06:35 +0100 | [diff] [blame] | 153 | You can run the script as following example: |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 154 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 155 | :: |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 156 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 157 | # merge RKE and ONAP app data lists |
| 158 | cat ./build/data_lists/rke_docker_images.list >> ./build/data_lists/onap_docker_images.list |
| 159 | |
| 160 | ./build/build_nexus_blob.sh |
| 161 | |
| 162 | .. note:: in current release scope we aim to maintain just single example data lists set, tags used in previous releases are not needed. Datalists are also covering latest versions verified by us despite user is allowed to build data lists on his own. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 163 | |
Tomáš Levora | 8d272bd | 2019-03-12 15:06:35 +0100 | [diff] [blame] | 164 | Once the Nexus data blob is created, the docker images and npm and pypi |
| 165 | packages can be deleted to reduce the package size as they won't be needed in |
| 166 | the installation time: |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 167 | |
| 168 | E.g. |
| 169 | |
| 170 | :: |
| 171 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 172 | rm -f /tmp/resources/offline_data/docker_images_for_nexus/* |
| 173 | rm -rf /tmp/resources/offline_data/npm_tar |
| 174 | rm -rf /tmp/resources/offline_data/pypi |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 175 | |
| 176 | Part 4. Application helm charts preparation and patching |
| 177 | -------------------------------------------------------- |
| 178 | |
| 179 | This is about to clone oom repository and patch it to be able to use it |
| 180 | offline. Use the following command: |
| 181 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 182 | :: |
| 183 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 184 | ./build/fetch_and_patch_charts.sh <helm charts repo> <commit/tag/branch> <patchfile> <target\_dir> |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 185 | |
| 186 | For example: |
| 187 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 188 | :: |
| 189 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 190 | ./build/fetch_and_patch_charts.sh https://gerrit.onap.org/r/oom 0b904977dde761d189874d6dc6c527cd45928 /tmp/onap-offline/patches/onap.patch /tmp/oom-clone |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 191 | |
| 192 | Part 5. Creating offline installation package |
| 193 | --------------------------------------------- |
| 194 | |
| 195 | For the packagin itself it's necessary to prepare configuration. You can |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 196 | use ./build/package.conf as template or |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 197 | directly modify it. |
| 198 | |
Samuli Silvius | 426e6c0 | 2019-02-06 11:25:01 +0200 | [diff] [blame] | 199 | There are some parameters needs to be set in configuration file. |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 200 | Example values below are setup according to steps done in this guide to package ONAP. |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 201 | |
| 202 | +---------------------------------------+------------------------------------------------------------------------------+ |
| 203 | | Parameter | Description | |
| 204 | +=======================================+==============================================================================+ |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 205 | | HELM_CHARTS_DIR | directory with Helm charts for the application | |
Tomáš Levora | f349154 | 2019-02-20 12:59:14 +0100 | [diff] [blame] | 206 | | | | |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 207 | | | Example: /tmp/oom-clone/kubernetes | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 208 | +---------------------------------------+------------------------------------------------------------------------------+ |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 209 | | APP_CONFIGURATION | application install configuration (application_configuration.yml) for | |
Samuli Silvius | f3eee9e | 2019-02-10 13:24:03 +0200 | [diff] [blame] | 210 | | | ansible installer and custom ansible role code directories if any. | |
Tomáš Levora | f349154 | 2019-02-20 12:59:14 +0100 | [diff] [blame] | 211 | | | | |
| 212 | | | Example:: | |
| 213 | | | | |
| 214 | | | APP_CONFIGURATION=( | |
Michal Ptacek | b78bbf8 | 2019-05-29 14:56:50 +0000 | [diff] [blame] | 215 | | | /tmp/onap-offline/config/application_configuration.yml | |
| 216 | | | /tmp/onap-offline/patches/onap-patch-role | |
Tomáš Levora | f349154 | 2019-02-20 12:59:14 +0100 | [diff] [blame] | 217 | | | ) | |
| 218 | | | | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 219 | +---------------------------------------+------------------------------------------------------------------------------+ |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 220 | | APP_BINARY_RESOURCES_DIR | directory with all (binary) resources for offline infra and application | |
Tomáš Levora | f349154 | 2019-02-20 12:59:14 +0100 | [diff] [blame] | 221 | | | | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 222 | | | Example: /tmp/resources | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 223 | +---------------------------------------+------------------------------------------------------------------------------+ |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 224 | | APP_AUX_BINARIES | additional binaries such as docker images loaded during runtime [optional] | |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 225 | +---------------------------------------+------------------------------------------------------------------------------+ |
| 226 | |
| 227 | Offline installer packages are created with prepopulated data via |
eronkeo | 8457e02 | 2019-04-24 15:18:18 +0000 | [diff] [blame] | 228 | following command run from onap-offline directory |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 229 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 230 | :: |
| 231 | |
| 232 | ./build/package.sh <project> <version> <packaging target directory> |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 233 | |
| 234 | E.g. |
| 235 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 236 | :: |
| 237 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 238 | ./build/package.sh onap 4.0.0 /tmp/package |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 239 | |
| 240 | |
| 241 | So in the target directory you should find tar files with |
| 242 | |
Michal Ptacek | 1d0c0e7 | 2019-04-05 06:39:31 +0000 | [diff] [blame] | 243 | :: |
Tomáš Levora | 418db4d | 2019-01-30 13:17:50 +0100 | [diff] [blame] | 244 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 245 | offline-<PROJECT_NAME>-<PROJECT_VERSION>-sw.tar |
| 246 | offline-<PROJECT_NAME>-<PROJECT_VERSION>-resources.tar |
| 247 | offline-<PROJECT_NAME>-<PROJECT_VERSION>-aux-resources.tar |
| 248 | |
| 249 | |
| 250 | Appendix 1. Step-by-step download procedure |
| 251 | ------------------------------------------- |
| 252 | |
| 253 | **Step 1 - docker images** |
| 254 | |
| 255 | :: |
| 256 | |
| 257 | # This step will parse all 3 docker datalists (offline infrastructure images, rke k8s images & onap images) |
| 258 | # and start building onap offline platform in /tmp/resources folder |
| 259 | |
Milan Verespej | d85b2d7 | 2019-06-05 13:58:38 +0200 | [diff] [blame] | 260 | ./build/download/download.py --docker ./build/data_lists/infra_docker_images.list ../resources/offline_data/docker_images_infra \ |
| 261 | --docker ./build/data_lists/rke_docker_images.list ../resources/offline_data/docker_images_for_nexus \ |
| 262 | --docker ./build/data_lists/onap_docker_images.list ../resources/offline_data/docker_images_for_nexus |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 263 | |
| 264 | |
| 265 | **Step 2 - building own dns image** |
| 266 | |
| 267 | :: |
| 268 | |
| 269 | # We are building our own dns image within our offline infrastructure |
| 270 | ./build/creating_data/create_nginx_image/01create-image.sh /tmp/resources/offline_data/docker_images_infra |
| 271 | |
| 272 | **Step 3 - git repos** |
| 273 | |
| 274 | :: |
| 275 | |
| 276 | # Following step will download all git repos |
| 277 | ./build/download/download.py --git ./build/data_lists/onap_git_repos.list ../resources/git-repo |
| 278 | |
| 279 | **Step 4 - http files** |
| 280 | |
| 281 | ToDo: complete and verified list of http files will come just during/after vFWCL testcase |
| 282 | |
| 283 | **Step 5 - npm packages** |
| 284 | |
| 285 | :: |
| 286 | |
| 287 | # Following step will download all npm packages |
| 288 | ./build/download/download.py --npm ./build/data_lists/onap_npm.list ../resources/offline_data/npm_tar |
| 289 | |
| 290 | **Step 6 - binaries** |
| 291 | |
| 292 | :: |
| 293 | |
Tomáš Levora | f6bd937 | 2019-06-14 10:54:39 +0200 | [diff] [blame] | 294 | # Following step will download rke, kubectl and helm binaries |
Milan Verespej | d0f7620 | 2019-06-10 10:27:20 +0200 | [diff] [blame] | 295 | ./build/download/download.py --http ./build/data_lists/infra_bin_utils.sh ../resources/downloads |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 296 | |
| 297 | **Step 7 - rpms** |
| 298 | |
| 299 | :: |
| 300 | |
| 301 | # Following step will download all rpms and create repo |
| 302 | ./build/download/download.py --rpm ./build/data_lists/onap_rpm.list ../resources/pkg/rhel |
| 303 | |
| 304 | createrepo ../resources/pkg/rhel |
| 305 | |
| 306 | **Step 8 - pip packages** |
| 307 | |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 308 | :: |
| 309 | |
| 310 | # Following step will download all pip packages |
Milan Verespej | d85b2d7 | 2019-06-05 13:58:38 +0200 | [diff] [blame] | 311 | ./build/download/download.py --pypi ./build/data_lists/onap_pip_packages.list ../resources/offline_data/pypi |
Michal Ptacek | 4aff8f4 | 2019-05-31 14:12:14 +0000 | [diff] [blame] | 312 | |