coverage report

Avy

This is an implementation of the FDSN availability web service following the specifications at https://www.fdsn.org/webservices/fdsnws-availability-1.0.pdf

It is intended to work with a database table populated with the mseedindex tool.

Usage

Environment variables

The service is configured by environment variables:

Mandatory

Optional

Reporting to Sentry

Running

A docker container is provided, you can get the image at ''gricad-registry.univ-grenoble-alpes.fr/osug/resif/avy/avy''

To build it yourself, clone the repository and run:

MIX_ENV=prod mix release

The executable is available at _build/avy/prod/avy

Developers

All contributions are welcome. Clone the project, create merge requests.

Conception

The availability system relies on a database populated by miniseed data indexation and metadata ingestions. The database is managed by the project osug/resif/sigma>

Database schema

Avy has all migration schemas embedded, but in production, avy should not manage the schema, as there should be another application responsible for data ingestion, which should be responsible for the schema management.

Database migration schemas are here in order to make sure tests will pass seamlessly.

Run the tests

For the local tests to succeed you need a running postgresql instance (example with podman).

podman run -d -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres
mix coverall

Build

MIX_ENV=dev mix release

Code presentation

Based on the Phoenix framework, almost all the logic lies in two files:

Others important parts:

Special thanks