Commit 5dcad213 authored by MAISSIAT's avatar MAISSIAT Committed by BODERE
Browse files

Pm22d12 master patch 08988

parent 1d33929b
......@@ -2,6 +2,33 @@
Web UI for monitoring and administering the eo-dataflow manager
# docker
## Build image
```
docker build -t eo-dataflow-ui:#1 .
with #1 version of docker image
```
## Run
```
docker run -p #1:8080 -e LOGTOFILE=#2 -e MANAGEMENT_DSN=#3 -e BROKER_DSN=#4 -v #5:/opt/logs eo-dataflow-ui:#6
with :
#1 published port number (no default)
#2 write uwsgi log to file YES or NO (default NO : write in sdtout)
#3 URL of rabbitMQ management (default https://rabbitmq-management-val.ifremer.fr:15672)
#4 URL of rabbitMQ for queue (default amqp://cersat-downloader-ui:Bruce and the Spatules@rabbitmq-cluster-val.ifremer.fr:5672/cersat-downloader)
#5 uwsgi log file mapping directory (in case LOGTOFILE=YES default /opt/logs in container)
#6 version of docker image
```
## Stop
```
stop conainer:
docker container stop eo-dataflow-ui
stop and suppress container:
docker container rm -f eo-dataflow-ui
```
# Installation
## Conda
......@@ -18,46 +45,23 @@ conda activate eo-dataflow-ui
```
## Configuration
```
# Session database
django-admin migrate --settings conf.settings --pythonpath .
```
## Settings / run
set the MANAGEMENT_DSN and BROKER_DSN environment variables
```
vi conf/settings.py
vi conf/celery_cfg.json
```
### nginx
```
vi conf/nginx.conf
vi conf/uwsgi.ini
conf/run
```
### apache
```
LOG_LEVEL="--log-level DEBUG
USER_NAME=apache
GROUP_NAME=apache
PORT_NO=80
SERVER_NAME= url
LOG_DIRECTORY=--log-directory ${PWD}/conf/logs/
scripts/run.sh
```
### docker
```
docker run -p #:80 -e LOG_LEVEL=# -e SERVER_NAME=# -e LOG_TERMINAL=--log-to-terminal -v #:/home/eo-dataflow-ui/conf/export eo-dataflow-ui
```
# Development
## Tooling
......
import os
......@@ -20,7 +19,7 @@ LOGGER_DEFAULT_FILE_NAME = "download_"
LOGGER_SYNCHRO_FILE_NAME = "synchro_"
LOGGER_RELOAD_FILE_NAME = "reload_"
RABBITMQ_TIMEOUT = 5
RABBITMQ_TIMEOUT = 60
EO_DATAFLOW_TASKS = 'eo_dataflow_manager.worker.celery_tasks.'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment