bear-rsg / apps-docs

MIT License
0 stars 0 forks source link

Apps Docs

Used on:

Setup

  1. pip install . in the base directory
    • MySQL / MariaDB: pip install .[mysql]
    • PostgreSQL: pip install .[postgres]
    • Testing / development: pip install .[testing,linting]
  2. cd src/apps-docs
  3. Prepare equivalents of
    • core/templates/base_bear.html
    • bear_applications/templates/bear_applications/help_bear.html
    • bear_applications/templates/bear_applications/home_bear.html
  4. cp core/bear.json core/my_config.json
    • Name this file for your system
    • Edit this file as required, linking in the pages created in the previous section
  5. cp core/local_settings.example.py core/local_settings.py
    • Edit this file as required
  6. python manage.py migrate
  7. Set up production hosting, for example using nginx and uwsgi (see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/uwsgi/)

Scripts and Adding and Editing Data

All data is added, or edited, via the scripts in the scripts directory.

add_module_info.sh and add_module_info.py

These are used to parse a module file and add it to the database. This parses Tcl module files generated by EasyBuild.

BEAR Module Setup

These are several references to BEAR Apps Versions in the code. BlueBEAR and Baskerville are setup so that a subset of modules are installed together, in a groups ('BEAR App Version') and these groupings require a module load command to access (which may be enabled by default of not).

Beyond these we operate a flat module naming scheme.