Commit 574022a0 authored by BERJON Matthieu's avatar BERJON Matthieu

Update of the initialisation process

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>
parent 1ff796b1
#!/bin/sh
set -e -x
# At the moment, do nothing
# mkdir /vol && chown allgo: /vol
SETUP=/opt/allgo/setup/dk
mkdir -p \
/vol/rw/datastore \
/vol/rw/app \
/vol/rw/system \
/vol/log/nginx \
/vol/log/django \
/vol/log/redis \
/vol/log/supervisor \
/vol/log/gunicorn \
/vol/cache/redis \
/vol/cache/nginx
# scripts
ln -s "$SETUP/run-allgo" /usr/local/bin
# supervisord config
# rm /etc/supervisor/supervisord.conf
# ln -s "/opt/allgo/setup/dk/supervisord.conf" /etc/supervisor/
# nginx config
rm /etc/nginx/sites-enabled/default
ln -s "/opt/allgo/setup/dk/nginx.conf" /etc/nginx/sites-enabled/allgo
# exec nginx -t && exec nginx -g 'daemon off;'
# nginx -t
# nginx -g 'daemon off;' &
# exec python3 /opt/allgo/manage.py runserver 4000&
# exec supervisord -n
exec run-allgo
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