Checkout the Documentation for more info.
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:
${NGINX_PORT}
by the desired port on the server / local machineflask_app
and panel_app
remove the env_file line and add the contents of config/*.prod
into each corresponding enviroment
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:
ceregecl/netcdf_editor_python_worker
ceregecl/netcdf_editor_flask_app
ceregecl/netcdf_editor_panel_app
ceregecl/netcdf_editor_message_dispatcher
ceregecl/netcdf_editor_nginx
Single page app:
ceregecl/netcdf_editor
The test suite uses pytest and coverage.
To run the tests either run
python -m pytest tests/
or:
coverage run -m pytest && coverage report