Paleoclim-CNRS / netcdf_editor_app

https://cerege-cl.github.io/netcdf_editor_app/
MIT License
9 stars 4 forks source link

Netcdf Editor App

Generic badge Gitter chat Docker Image CI Python Tests Issue tracker

Introduction

Checkout the Documentation for more info.

Deploying to local server

Images are automatically built using the github actions pipeline see https://github.com/CEREGE-CL/netcdf_editor_app/blob/main/.github/workflows/docker-image.yml these are automatically pushed to dockerhub and are therefore accesible for everyone: https://hub.docker.com/orgs/ceregecl/repositories

To deploy these locally you need to:

  1. Copy contents of docker-compose.yaml
  2. Replace ${NGINX_PORT} by the desired port on the server / local machine
  3. In flask_app and panel_app remove the env_file line and add the contents of config/*.prod into each corresponding enviroment
  4. run docker-compose up --build -d (you can scale workers with --scale python_worker=3 where python_worker is the name of the service in docker-compose)

Multipage stack images:

Single page app:

testing

The test suite uses pytest and coverage.

To run the tests either run

python -m pytest tests/

or:

coverage run -m pytest && coverage report