Added nexus blob data building script. 59/75059/1
authorSamuli Silvius <s.silvius@partner.samsung.com>
Fri, 21 Dec 2018 12:23:51 +0000 (14:23 +0200)
committerSamuli Silvius <s.silvius@partner.samsung.com>
Fri, 21 Dec 2018 13:45:36 +0000 (15:45 +0200)
commit9e9afd7b9b8276c8a20225266b2058024955cbbb
tree28040423c78dd28a5647b009a925f33b21ccb6d9
parent170d94b0a8fde81800705e5db04938a283f39a6a
Added nexus blob data building script.

Script can be used to pre-build nexus data blob from given binary files
at build time to avoid nexus populating each time from empty state
at installation time. This is usefull when most of the binaries are
changed rarely and nexus can be just started up with pre-build blob
data at installation time.

Currently just docker images and NPM packages are supported.

Script is generic and should not have any dependency to ONAP as such
but there is few lines now that are rererring to onap, see below grep:

$ grep -i onap build_nexus_blob.sh
SIMUL_HOSTS="docker.elastic.co gcr.io hub.docker.com nexus3.onap.org nexus.onap.org registry.hub.docker.com ${NEXUS_DOMAIN}"
def r = repository.createDockerHosted("onap", 8082, 0)
sed -i "s|https://nexus.onap-me.novalocal|http://${NEXUS_DOMAIN}:8081|g" package/package.json

Change-Id: I008678fdd6dc067e7ecb26969225e2324b44e7ba
Issue-ID: OOM-1551
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
build_nexus_blob.sh [new file with mode: 0755]