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