1. 22 Mar, 2018 2 commits
  2. 21 Mar, 2018 17 commits
  3. 20 Mar, 2018 9 commits
  4. 16 Mar, 2018 4 commits
  5. 15 Mar, 2018 2 commits
  6. 08 Mar, 2018 6 commits
    • BERJON Matthieu's avatar
      Add of the Supervisor configuration · c49cdc57
      BERJON Matthieu authored
      
      
      I created the Supervisor configuration file. At the moment, the
      configuration hasn't been tested because of the incompatibilities of
      Supervisor with Python 3. It still needs to be resolved.
      
      The configuration has been copied from Rails and adapted to run a Django
      application and later on a Redis cache system (commented at the moment).
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      c49cdc57
    • BERJON Matthieu's avatar
      Add of the app running script · 28e2b935
      BERJON Matthieu authored
      
      
      In order to launch the app, I create this script. It just launch the
      Django internal HTTP server on the port 4000 (later on, it should
      handled by Gunicorn or any WSGI server).
      Then I launch the nginx server.
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      28e2b935
    • BERJON Matthieu's avatar
      Add Nginx configuration file · e456fcb8
      BERJON Matthieu authored
      
      
      In order to mimic the Rails container using Django, I installed a Nginx
      reverse proxy that communicate directly with the Django application
      (through Gunicorn or directly).
      
      The current configuration is a copy of the Rails configuration except
      the listening port.
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      e456fcb8
    • BERJON Matthieu's avatar
      Update of the Nginx configuration · 2925d93e
      BERJON Matthieu authored
      
      
      I updated the Nginx configuration that is generated in the Python
      script. At the moment the configuration is hard-coded and need to be
      improved. It's working as such at the moment.
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      2925d93e
    • BERJON Matthieu's avatar
      Update of the initialisation process · 574022a0
      BERJON Matthieu authored
      
      
      I update the initialisation process (that was empty before).
      I create the different folders to host the logs, cache and others.
      
      I create a symbolic link for the following:
      
      - a run-allgo script that instanciate the Django app and Nginx
      - supervisor configuration (at the moment, commented)
      - nginx configuration
      
      I then execute the run-algo script. At the moment, it seems that the
      execution of this script either doesn't occur or create an error with
      docker compose at launch (the dev-django container doesn't run). So at
      the moment, I run by hand the script once the container is up.
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      574022a0
    • BERJON Matthieu's avatar
      Update of the packages installation and container initialisation · 1ff796b1
      BERJON Matthieu authored
      
      
      I updated the packages installed in order to:
      
      - remove some unecessary packages related mainly to Rails
      - add packages relation to python 3 and Django
      
      I updated the container initialisation that seems to fit the current
      practice with other container initialisation process.
      
      One thing to mention. Supervisor can't work with Python 3. Anthony
      suggested to install Python 2 just to make Supervisor happy and run
      Gunicorn/Python 3 as such.
      Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
      1ff796b1