README.md
48 lines
| 1.5 KiB
| text/x-minidsrc
|
MarkdownLexer
r356 | # Integrated Weather Radar System (SIRM) | ||
r299 | |||
r363 | The Integrated Weather Radar System (SIRM) is a web application which allows the configuration of SOPHy¹ radar devices as required by the experiment. This app allows the creation of Experiment and Device Configurations (Pedestal, Generator, USRP Rx and USRP Tx). | ||
r361 | |||
For more information visit: https://doi.org/10.5281/zenodo.5571130. | |||
r363 | ¹Scanning-system for Observation of Peruvian Hydrometeorological-events | ||
r299 | |||
## Installation | |||
We recommend use docker/docker-compose for test/production but you can install the aplication as a normal django app. | |||
### 1. Download | |||
r361 | Download the application *radarsys_met* to your workspace | ||
r299 | |||
$ cd /path/to/your/workspace | |||
r366 | $ git clone http://intranet.igp.gob.pe:8082/radarsys_met | ||
r299 | |||
r366 | ### 2. Config <code>.env</code> file | ||
r299 | |||
r366 | Update enviroment vars (/path/to/radarsys_met/.env) | ||
r376 | |||
r366 | #General settings | ||
r376 | SIRM_SITE=<SIRM SITE> | ||
SIRM_PORT=<SIRM PORT> | |||
SIRM_MAX_UPLOAD_SIZE_MB=20 | |||
r299 | |||
r366 | #Postgres settings | ||
DB_NAME=radarsys | |||
DB_USER=docker | |||
DB_PASSWORD=**** | |||
r299 | |||
r366 | #Volumes - path | ||
r367 | EXPOSE_PGDATA=/path/to/pg_data | ||
EXPOSE_CERTS=/path/to/certs | |||
EXPOSE_DHPARAM=/path/to/dhparam | |||
r299 | |||
r366 | #Superuser settings | ||
SIRM_USER=admin123 | |||
SIRM_PASSWORD=admin123 | |||
SIRM_EMAIL=admin123@igp.gob.pe | |||
r361 | |||
r367 | ### 3. Create the folders declared in the variables <code>EXPOSE_PGDATA</code>, <code>EXPOSE_CERTS</code> and <code>EXPOSE_DHPARAM</code> in the <code>.env</code> file. | ||
r299 | |||
r366 | ### 4. Build and run containers | ||
You should maybe run the command using <code>sudo</code> | |||
$ docker-compose up -d --build |