README.md
46 lines
| 1.5 KiB
| text/x-minidsrc
|
MarkdownLexer
r356 | # Integrated Weather Radar System (SIRM) | |||
r299 | ||||
r362 | The Integrated Weather Radar System (SIRM) is a web application which allows the configuration of SOPHy^1^ 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. | ||||
r362 | ^1^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 | ||||
r361 | $ git clone http://intranet.igp.gob.pe:8082/radarsys_met && cd radarsys_met | |||
r299 | ||||
### 2. Config app | ||||
r301 | Update enviroment vars (/path/to/radarsys/.env) | |||
r299 | ||||
r301 | REDIS_HOST=radarsys-redis | |||
REDIS_PORT=6300 | ||||
r299 | POSTGRES_DB_NAME=radarsys | |||
POSTGRES_PORT_5432_TCP_ADDR=radarsys-postgres | ||||
r301 | POSTGRES_PORT_5432_TCP_PORT=5400 | |||
r299 | POSTGRES_USER=docker | |||
POSTGRES_PASSWORD=**** | ||||
PGDATA=/var/lib/postgresql/data | ||||
LC_ALL=C.UTF-8 | ||||
r301 | ### 3. Build application & make migrations (only once at installation) | |||
r299 | ||||
r361 | You should maybe run the commands using <code>sudo</code> | |||
$ cd /path/to/radarsys_met | ||||
r299 | $ docker-compose build | |||
r301 | $ docker-compose run web python manage.py makemigrations | |||
$ docker-compose run web python manage.py migrate | ||||
$ docker-compose run web python manage.py collectstatic | ||||
r299 | ||||
### 4. Run containers | ||||
r301 | $ docker-compose up -d | |||