@@ -1,39 +1,45 | |||
|
1 | 1 | # Integrated Radar System (SIR) |
|
2 | 2 | |
|
3 | 3 | The Integrated Radar System (SIR) is a web application that allows the configuration of the radar devices as required by the experiment, |
|
4 | 4 | This app allows the creation of Campaigns, Experiment and Device Configurations. |
|
5 | 5 | For more information visit: http://jro-dev.igp.gob.pe:3000/projects/sistema-integrado-de-radar/wiki |
|
6 | 6 | |
|
7 | 7 | ## Installation |
|
8 | 8 | |
|
9 | 9 | We recommend use docker/docker-compose for test/production but you can install the aplication as a normal django app. |
|
10 | 10 | |
|
11 | 11 | ### 1. Download |
|
12 | 12 | |
|
13 | 13 | Download the application *radarsys* to your workspace |
|
14 | 14 | |
|
15 | 15 | $ cd /path/to/your/workspace |
|
16 | 16 | $ git clone http://jro-dev.igp.gob.pe/rhodecode/radarsys && cd radarsys |
|
17 | 17 | |
|
18 | 18 | ### 2. Config app |
|
19 | 19 | |
|
20 |
|
|
|
20 | Update enviroment vars (/path/to/radarsys/.env) | |
|
21 | 21 | |
|
22 |
|
|
|
22 | REDIS_HOST=radarsys-redis | |
|
23 | REDIS_PORT=6300 | |
|
23 | 24 | POSTGRES_DB_NAME=radarsys |
|
24 | 25 | POSTGRES_PORT_5432_TCP_ADDR=radarsys-postgres |
|
25 |
POSTGRES_PORT_5432_TCP_PORT=54 |
|
|
26 | POSTGRES_PORT_5432_TCP_PORT=5400 | |
|
26 | 27 | POSTGRES_USER=docker |
|
27 | 28 | POSTGRES_PASSWORD=**** |
|
28 | 29 | PGDATA=/var/lib/postgresql/data |
|
29 | 30 | LC_ALL=C.UTF-8 |
|
30 | 31 | |
|
31 | Set database user/password in /path/to/radarsys/settings.py | |
|
32 | ||
|
33 | ### 3. Build application | |
|
32 | ### 3. Build application & make migrations (only once at installation) | |
|
34 | 33 | |
|
34 | $ cd /path/to/radarsys | |
|
35 | 35 | $ docker-compose build |
|
36 | $ docker-compose run web python manage.py makemigrations | |
|
37 | $ docker-compose run web python manage.py migrate | |
|
38 | $ docker-compose run web python manage.py loaddata apps/main/fixtures/main_initial_data.json | |
|
39 | $ docker-compose run web python manage.py loaddata apps/rc/fixtures/rc_initial_data.json | |
|
40 | $ docker-compose run web python manage.py loaddata apps/jars/fixtures/initial_filters_data.json | |
|
41 | $ docker-compose run web python manage.py collectstatic | |
|
36 | 42 | |
|
37 | 43 | ### 4. Run containers |
|
38 | 44 | |
|
39 | $ docker-compose up -d No newline at end of file | |
|
45 | $ docker-compose up -d |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now