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

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 <>
parent 1ff796b1
set -e -x
# At the moment, do nothing
# mkdir /vol && chown allgo: /vol
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 \
# 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/ runserver 4000&
# exec supervisord -n
exec run-allgo
Supports Markdown
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