blob: 3d68c3ff4bb0a861ee283423acff26b5e136fef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Docker Compose deployment example for local enviroments, CPS deployment is done via OOM
To run the application locally using `docker-compose`, execute following command from this `docker-compose` folder:
Compile without generating the docker images
```bash
mvn clean install -Pcps-docker -Pxnf-docker -Pcps-xnf-docker -Djib.skip
```
Generate the docker images
```bash
mvn clean install -Pcps-docker -Pxnf-docker -Pcps-xnf-docker
```
for generate a specific type of docker images
```bash
mvn clean install -Pcps-docker
```
Run the containers
```bash
VERSION=0.0.1-SNAPSHOT DB_HOST=dbpostgresql DB_USERNAME=cps DB_PASSWORD=cps docker-compose up -d
```
Run application from Intellj IDE
you need first to enable the maven profile desired under tab Maven
then go to Run -> Edit configurations
1- Working directory -> select docker-compose folder e.g. ~/workspace/onap/cps/docker-compose/
2- Enviroment variables -> add variables configuration e.g. DB_HOST=127.0.0.1;DB_USERNAME=cps;DB_PASSWORD=cps
|