From a401e7264b37ed9cbc75795d2196fcb4fe21a121 Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Wed, 30 Jun 2021 08:38:51 +0100 Subject: Replaced nexusproxy property with onap.nexus.url Also removed redefined redefined nexusproxy and distribution Management from poms Update ReadMe accordingly Issue-ID: CPS-435 Change-Id: I02831e737587a1a16e9743773f2840c209d1fffd Signed-off-by: mkerrigan Signed-off-by: ToineSiebelink --- cps-application/pom.xml | 4 ++-- cps-parent/pom.xml | 21 +-------------------- docker-compose/README.md | 27 ++++++++++++++++++++++++--- docker-compose/docker-compose.yml | 4 ++-- 4 files changed, 29 insertions(+), 27 deletions(-) diff --git a/cps-application/pom.xml b/cps-application/pom.xml index 8c79666252..2ae4883752 100755 --- a/cps-application/pom.xml +++ b/cps-application/pom.xml @@ -38,7 +38,7 @@ 2.8.0 yyyyMMdd'T'HHmmss'Z' 0.7 - ${docker.repository.pull}onap/integration-java11:8.0.0 + ${docker.pull.registry}/onap/integration-java11:8.0.0 ${project.version}-${maven.build.timestamp} @@ -127,7 +127,7 @@ latest - ${docker.repository.push}onap/${image.name}:${image.tag} + ${docker.push.registry}/onap/${image.name}:${image.tag} diff --git a/cps-parent/pom.xml b/cps-parent/pom.xml index 78a89f0aca..a341ea9af7 100755 --- a/cps-parent/pom.xml +++ b/cps-parent/pom.xml @@ -37,16 +37,10 @@ org.onap.cps.Application - nexus3.onap.org:10003/ - nexus3.onap.org:10001/ 11 1.1.1 0.9 - https://nexus.onap.org 3.1.0 - UTF-8 - /content/repositories/releases/ - /content/repositories/snapshots/ 4.1.3 1.8.0-beta4 1.5.0 @@ -73,19 +67,6 @@ - - - ecomp-releases - ECOMP Release Repository - ${nexusproxy}${releaseNexusPath} - - - ecomp-snapshots - ECOMP Snapshot Repository - ${nexusproxy}${snapshotNexusPath} - - - @@ -346,7 +327,7 @@ see https://www.testcontainers.org/features/configuration/#disabling-ryuk --> true - ${docker.repository.pull}library/ + ${docker.pull.registry}/library/ diff --git a/docker-compose/README.md b/docker-compose/README.md index 6fa222908c..c172276ebe 100644 --- a/docker-compose/README.md +++ b/docker-compose/README.md @@ -1,9 +1,30 @@ + + # Building and running CPS locally ## Building Java Archive only Following command builds all Java components to `cps-application/target/cps-application-x.y.z-SNAPSHOT.jar` JAR file -without generating any docker images: +without generating any docker images: ```bash mvn clean install -Pcps-docker -Pncmp-docker -Pcps-ncmp-docker -Djib.skip @@ -14,14 +35,14 @@ mvn clean install -Pcps-docker -Pncmp-docker -Pcps-ncmp-docker -Djib.skip * Following command builds the JAR file and also generates the Docker image for all CPS components: ```bash -mvn clean install -Pcps-docker -Pncmp-docker -Pcps-ncmp-docker -Ddocker.repository.push= +mvn clean install -Pcps-docker -Pncmp-docker -Pcps-ncmp-docker ``` * Following command builds the JAR file and generates the Docker image for specified CPS component: (with `` being one of `cps-docker`, `ncmp-docker` or `cps-ncmp-docker`): ```bash -mvn clean install -P -Ddocker.repository.push= +mvn clean install -P ``` ## Running Docker containers diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index f01d12da28..626783445d 100755 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -36,7 +36,7 @@ services: #ncmp-standalone: # container_name: cps-ncmp - # image: onap/cps-ncmp:${VERSION:-latest} + # image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/cps-and-ncmp:${VERSION:-latest} # ports: # - "8882:8080" # environment: @@ -51,7 +51,7 @@ services: cps-and-ncmp: container_name: cps-and-ncmp - image: onap/cps-and-ncmp:${VERSION:-latest} + image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/cps-and-ncmp:${VERSION:-latest} ports: - "8883:8080" environment: -- cgit 1.2.3-korg