##// END OF EJS Templates
Update settings for postgres container and prerun.py file
Update settings for postgres container and prerun.py file

File last commit:

r376:cd7f82cbe0ca
r376:cd7f82cbe0ca
Show More
README.md
48 lines | 1.5 KiB | text/x-minidsrc | MarkdownLexer

Integrated Weather Radar System (SIRM)

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).

For more information visit: https://doi.org/10.5281/zenodo.5571130.

¹Scanning-system for Observation of Peruvian Hydrometeorological-events

Installation

We recommend use docker/docker-compose for test/production but you can install the aplication as a normal django app.

1. Download

Download the application radarsys_met to your workspace

$ cd /path/to/your/workspace
$ git clone http://intranet.igp.gob.pe:8082/radarsys_met

2. Config .env file

Update enviroment vars (/path/to/radarsys_met/.env)

#General settings 
SIRM_SITE=<SIRM SITE>
SIRM_PORT=<SIRM PORT>
SIRM_MAX_UPLOAD_SIZE_MB=20

#Postgres settings
DB_NAME=radarsys
DB_USER=docker
DB_PASSWORD=****

#Volumes - path
EXPOSE_PGDATA=/path/to/pg_data
EXPOSE_CERTS=/path/to/certs
EXPOSE_DHPARAM=/path/to/dhparam

#Superuser settings
SIRM_USER=admin123
SIRM_PASSWORD=admin123
SIRM_EMAIL=admin123@igp.gob.pe

3. Create the folders declared in the variables EXPOSE_PGDATA, EXPOSE_CERTS and EXPOSE_DHPARAM in the .env file.

4. Build and run containers

You should maybe run the command using sudo

$ docker-compose up -d --build