README.md 3.32 KB
Newer Older
Sascha Herzinger's avatar
Sascha Herzinger committed
1
[![Build Status](https://git-r3lab.uni.lu/sascha.herzinger/fractalis/badges/master/build.svg)](https://git-r3lab.uni.lu/sascha.herzinger/fractalis/builds/)
2
[![Coverage Report](https://git-r3lab.uni.lu/sascha.herzinger/fractalis/badges/master/coverage.svg)](https://git-r3lab.uni.lu/sascha.herzinger/fractalis/builds/)
Sascha Herzinger's avatar
Sascha Herzinger committed
3

4
### About
Sascha Herzinger's avatar
Sascha Herzinger committed
5
This is the back-end component of the Fractalis project. It is a computational node that is responsible for the MicroETL process and the execution of analytical tasks. See https://fractalis.lcsb.uni.lu/
6

7 8 9
### Demo
Please have a look at this playlist to see a demo of the visual aspects of Fractalis: [Playlist](https://www.youtube.com/playlist?list=PLNvp9GB9uBmH1NNAf-qTyj_jN2aCPISFU).

10 11
### Installation (Docker)
The easiest and most convenient way to deploy Fractalis is using Docker.
Sascha Herzinger's avatar
Sascha Herzinger committed
12
All necessary information can be found [here](docker).
13 14

### Installation (Manual)
Sascha Herzinger's avatar
Sascha Herzinger committed
15 16 17 18
If you do not want to use docker or want a higher level of control of the several components, that's fine. In fact it isn't difficult to setup Fractalis manually:

- Install and run [Redis](https://redis.io/), which is available on most Linux distributions. This instance must be accessible by the web service and the workers.
- Install and run [RabbitMQ](https://www.rabbitmq.com/), which is available on most Linux distributions. This instance must be accessible by the web service and the workers.
19
- Install Fractalis via `pip3 install fractalis`. Please note that Fractalis requires Python3.4 or higher. This must be installed on all machines that will run the web service or the workers.
Sascha Herzinger's avatar
Sascha Herzinger committed
20 21 22 23
- Install required all required R packages. We won't list these packages excplicitely, as they can change frequently. Please refer instead to the [Dockerfile](https://git-r3lab.uni.lu/Fractalis/fractalis/blob/master/docker/Dockerfile), which is *always* up-to-date, as a new version of Fractalis is only released when the Docker image passes all tests. This must be installed on all machines that will run the web service or the workers.
- Run and expose the Fractalis web service with whatever tools you want. We recommend **gunicorn** and **nginx**, but others should work, too.
- Run the celery workers on any machine that you want within the same network. (For a simple setup this can be the very same machine that the web service runs on).

24
Note: The [docker-compose.yml](docker/docker-compose.yml) describes how the different services are started and how they connect with each other.
Sascha Herzinger's avatar
Sascha Herzinger committed
25

Sascha Herzinger's avatar
Sascha Herzinger committed
26
### Configuration
Sascha Herzinger's avatar
Sascha Herzinger committed
27
Use the environment variable `FRACTALIS_CONFIG` to define the configuration file path.
28
This variable must be a) a valid python file (.py) and b) be available on all instances that host a Fractalis web service or a Fractalis worker.
Sascha Herzinger's avatar
Sascha Herzinger committed
29

30
Tip: Use the [default settings](fractalis/config.py) as an example for your own configuration file.
Sascha Herzinger's avatar
Sascha Herzinger committed
31 32
Please note, that all this files combines [Flask settings](http://flask.pocoo.org/docs/0.12/config/), [Celery settings](http://docs.celeryproject.org/en/latest/userguide/configuration.html), and Fractalis settings, which are all listed and documented within this file. 
Please don't overwrite default settings if you don't know what you are doing. This might have severe implications for security or might cause Fractalis to not work correctly.
33

Sascha Herzinger's avatar
Sascha Herzinger committed
34
### Add support for new services
35
Please refer to [this document](fractalis/data).
Sascha Herzinger's avatar
Sascha Herzinger committed
36

37 38
### Citation
Manuscript is in preparation.