Giter Club home page Giter Club logo

bea-sea-event-manager's Introduction

sea-event-manager-bea

Entry assistance tool for BEAMer investigators to the EMCIP database.

Deploying the app

Requirements

Docker

Configuration

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

If build is needed:

docker build . -t <project_docker_hub_id>/sea_events_manager

Run the app:

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

Reverse-proxy

If a reverse-proxy is desired, a functionnal dockerized setup is available in .nginx folder.

bea-sea-event-manager's People

Contributors

anne-lise avatar philippegalvan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.