summaryrefslogtreecommitdiffstats
path: root/docker-compose
diff options
context:
space:
mode:
authorRenu Kumari <renu.kumari@bell.ca>2021-05-17 07:16:48 -0400
committerRenu Kumari <renu.kumari@bell.ca>2021-05-17 18:10:21 -0400
commitbd35b4d03a474ce425040cc4656c7b94a87ef399 (patch)
tree1b7b230b218b538ffced9004d001fead6bd2c31c /docker-compose
parent1baf48d05be1cd32e22c065ebfec218da100d1f2 (diff)
nexus registry is parmateterized
Issue-ID: CPS-311 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I158387f54b1a9d3d60e6d97cc3336391745af3c0
Diffstat (limited to 'docker-compose')
-rw-r--r--docker-compose/README.md4
-rwxr-xr-xdocker-compose/docker-compose.yml18
2 files changed, 11 insertions, 11 deletions
diff --git a/docker-compose/README.md b/docker-compose/README.md
index 0b84e0a567..6fa222908c 100644
--- a/docker-compose/README.md
+++ b/docker-compose/README.md
@@ -14,14 +14,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 -Dnexus.repository=
+mvn clean install -Pcps-docker -Pncmp-docker -Pcps-ncmp-docker -Ddocker.repository.push=
```
* Following command builds the JAR file and generates the Docker image for specified CPS component:
(with `<docker-profile>` being one of `cps-docker`, `ncmp-docker` or `cps-ncmp-docker`):
```bash
-mvn clean install -P<docker-profile> -Dnexus.repository=
+mvn clean install -P<docker-profile> -Ddocker.repository.push=
```
## Running Docker containers
diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml
index 8b6414eed3..f01d12da28 100755
--- a/docker-compose/docker-compose.yml
+++ b/docker-compose/docker-compose.yml
@@ -21,13 +21,13 @@ version: "3.7"
services:
#cps-standalone:
# container_name: cps-service
- # image: cps-service:${VERSION}
- # volumes:
- # - "./application.yml:/app/resources/application.yml"
+ # image: onap/cps-service:${VERSION:-latest}
# ports:
# - "8881:8080"
# environment:
- # DB_HOST: ${DB_HOST}
+ # CPS_USERNAME: ${CPS_USERNAME:-cpsuser}
+ # CPS_PASSWORD: ${CPS_PASSWORD:-cpsr0cks!}
+ # DB_HOST: dbpostgresql
# DB_USERNAME: ${DB_USERNAME}
# DB_PASSWORD: ${DB_PASSWORD}
# restart: unless-stopped
@@ -36,13 +36,13 @@ services:
#ncmp-standalone:
# container_name: cps-ncmp
- # image: cps-ncmp:${VERSION}
- # volumes:
- # - "./application.yml:/app/resources/application.yml"
+ # image: onap/cps-ncmp:${VERSION:-latest}
# ports:
# - "8882:8080"
# environment:
- # DB_HOST: ${DB_HOST}
+ # CPS_USERNAME: ${CPS_USERNAME:-cpsuser}
+ # CPS_PASSWORD: ${CPS_PASSWORD:-cpsr0cks!}
+ # DB_HOST: dbpostgresql
# DB_USERNAME: ${DB_USERNAME}
# DB_PASSWORD: ${DB_PASSWORD}
# restart: unless-stopped
@@ -51,7 +51,7 @@ services:
cps-and-ncmp:
container_name: cps-and-ncmp
- image: cps-and-ncmp:${VERSION}
+ image: onap/cps-and-ncmp:${VERSION:-latest}
ports:
- "8883:8080"
environment: