tree: 5dccca8e4617cbf1e75dd90e630cbcbf4fedbddf [path history] [tgz]
  1. docker/
  2. granule_ingester/
  3. tests/
  4. conda-requirements.txt
  5. README.md
  6. requirements.txt
  7. setup.py
granule_ingester/README.md

SDAP Granule Ingester

The SDAP Granule Ingester is a service that reads from a RabbitMQ queue for YAML-formated string messages produced by the Collection Manager (/collection_manager in this repo). For each message consumed, this service will read a granule file from disk and ingest it into SDAP by processing the granule and writing the resulting data to Cassandra and Solr.

Prerequisites

Python 3.7

Building the service

From incubator-sdap-ingester, run: $ cd common && python setup.py install $ cd ../granule_ingester && python setup.py install

Launching the service

From incubator-sdap-ingester, run:

$ python granule_ingester/granule_ingester/main.py -h

Running the tests

From incubator-sdap-ingester, run:

$ cd common && python setup.py install
$ cd ../granule_ingester && python setup.py install
$ pip install pytest && pytest

Building the Docker image

From incubator-sdap-ingester, run:

$ docker build . -f granule_ingester/docker/Dockerfile -t nexusjpl/granule-ingester