Skip to content
Snippets Groups Projects
Commit 70a65338 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Setup new url on run example

parent 4bb9bc20
No related branches found
No related tags found
No related merge requests found
Pipeline #5093 passed
......@@ -8,23 +8,30 @@ Capif services are developed under [services folder](https://labs.etsi.org/rep/o
### Run All CAPIF Services locally with Docker images
To run using docker and docker compose, version 2.10 or higher, you must ensure you have that tools installed at your machine. Also to simplify the process, we have 3 script to control docker images to deploy, check and cleanup.
To run all CAPIF APIs locally using docker and docker-compose you can execute:
All script are present under ***services*** directory.
To run CAPIF APIs locally using docker and docker-compose you can use run.sh script:
```
cd services/
./run.sh -h
./run.sh
Usage: ./run.sh <options>
-c : Setup different hostname for capif
-m : Clean monitoring service
-h : show this help
```
This will build and run all services using docker images, including mongodb and nginx locally and in background, and import ca.crt to nginx.
This script build and run all services using docker images, including mongodb and nginx locally and in background, and import ca.crt to nginx. By default monitoring is not activated and Nginx deployed use **capifcore** as a hostname.
Nginx deployed by default use **capifcore** hostname, but can add a parameter when run.sh is executed setting a different hostname, for example,
Some examples of use:
```
# Default values, No monitoring and capifcore as CAPIF_HOSTNAME
./run.sh
# opencapif.etsi.org as CAPIF_HOSTNAME
./run.sh -c opencapif.etsi.org
```
Also you can run monitoring just using option -m true, for example:
```
./run.sh -m true
./run.sh -m true -c opencapif.etsi.org
# opencapif.etsi.org as CAPIF_HOSTNAME and monitoring activated
./run.sh -c opencapif.etsi.org -m true
```
If you want to check if all CAPIF services are running properly in local machine after execute run.sh, we can use:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment