Entry assistance tool for BEAMer investigators to the EMCIP database.
Docker
Configure the app with .env
config file
=> To create a default .env
config file:
echo 'SEA_EVENT_MANAGER_ALLOWED_HOSTS="127.0.0.1,localhost,host.docker.internal"
SEA_EVENT_MANAGER_DEBUG=False
SEA_EVENT_MANAGER_EMCIP_URL=https://apimgr-pp.emsa.europa.eu/services/emcip/v1
SEA_EVENT_MANAGER_BASIC_AUTHORIZATION_TOKEN=
SEA_EVENT_MANAGER_SECRET_KEY=
SEA_EVENT_MANAGER_STATIC_ROOT=/var/www/django_app
SEA_EVENT_MANAGER_FORCE_SCRIPT_NAME='> .env
docker build . -t <project_docker_hub_id>/sea_events_manager
Generate a valid .env
file and provide it to the container with -v option.
Static files are exposed through a volume mounted in the container.
docker run -d --rm -p 8000:8000 -v /var/www/django_app/static/:/code/static_root/static/ --env-file=.env --name=django_app <project_docker_hub_id>/sea_events_manager
docker exec django_app poetry run python /code/manage.py collectstatic --noinput
If a reverse-proxy is desired, a functionnal dockerized setup is available in .nginx
folder.